Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Please try this code, It might helps you.</p> <pre><code>- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { // Return the number of sections. return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { // Return the number of rows in the section. return [allListReceived count]; } -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return 44.0; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"TopCell"; MyCustomCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { NSArray* views = [[NSBundle mainBundle] loadNibNamed:@"MyCustomCell-iPad" owner:nil options:nil]; for (UIView *view in views) { if([view isKindOfClass:[UITableViewCell class]]) { cell = (MyCustomCell*)view; } } } NSString *textStr = [allListReceived objectAtIndex:indexPath.row]; cell.Label1.text = textStr; cell.Label2.text = textStr; cell.Label3.text = textStr; cell.Label4.text = textStr; cell.Label5.text = textStr; return cell; } </code></pre> <p>If you store NSMutableDictionary then please follow this code :</p> <pre><code>/* Add Objects To Array */ - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { NSMutableDictionary *dictInfo = [[[NSMutableDictionary alloc] init] autorelease]; [dictInfo setValue:labelName.text forKey:@"label1"]; [dictInfo setValue:labelAddress.text forKey:@"label2"]; [dictInfo setValue:labelAge.text forKey:@"label3"]; [dictInfo setValue:@"filePicname.png" forKey:@"label4"]; [allListReceived addObject:dictInfo]; } /* Display in UITableView */ NSMutableDictionary *dictInfo = [allListReceived objectAtIndex:indexPath.row]; cell.Label1.text = [dictInfo valueForKey:@"label1"]; cell.Label2.text = [dictInfo valueForKey:@"label2"]; cell.Label3.text = [dictInfo valueForKey:@"label3"]; cell.Label4.text = [dictInfo valueForKey:@"label4"]; cell.Label5.text = [dictInfo valueForKey:@"label5"]; </code></pre> <p>Let me know if you face any problems after trying this code.</p>
 

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