Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is only one item in your array, here is where you add just the one object:</p> <pre><code>array = [[NSMutableArray alloc] init]; [array addObject:[values valueForKey:@"rates"]]; </code></pre> <p>You should assign the the value that you get from the <code>[values valueForKey:@"rates"]</code> to the array variable. Also make the array variable a property that will retain the value. </p> <pre><code>@property (nonatomic, strong) NSArray *array; </code></pre> <p>then assign it to the property:</p> <pre><code>self.array = [values valueForKey:@"rates"]; </code></pre> <hr> <p>Also move all styling of the cell to the if where you create the new cell. This will speed thing up, since you not change the style of the cell every time.</p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier] autorelease]; cell.textLabel.adjustsFontSizeToFitWidth = YES; cell.textLabel.font = [UIFont systemFontOfSize:8]; cell.textLabel.numberOfLines = 4; } NSLog(@"data is like:--&gt; %@",array); // NSString *cellValue =[array objectAtIndex:indexPath.row]; // cell.textLabel.text = cellValue; cell.textLabel.text= [NSString stringWithFormat:@"%@",[array objectAtIndex:indexPath.row]]; return cell; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload