Up vote 0 down vote favorite share g+ share fb share tw.
ViewDidLoad { tbl. RowHeight = 150; ary = NSArray allocinitWithObjects:@"asdf",@"asd",nil; ary2 = NSArray allocinitWithObjects:@"google",@"yahoo",nil; } - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1; } // Customize the number of rows in the table view. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return ary count; } // Customize the appearance of table view cells.
- (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; } // Configure the cell. Cell.textLabel. Text = ary objectAtIndex:indexPath.
Row; cell.detailTextLabel. Text = ary2 objectAtIndex:indexPath. Row ; cell.
AccessoryType = UITableViewCellAccessoryDisclosureIndicator; return cell; } The problem for me is detailtextlabel not displaying in table view. Are there any errors in my code? Iphone cocoa-touch uitableview uitableviewcell link|improve this question edited Aug 24 '11 at 11:21Halle8591520 asked Apr 7 '11 at 6:53Nipin P N454 73% accept rate.
See the below link In UITableView, cell.detailTextLabel. Text isn't working… why?
Make sure you're using an UITableViewCellStyle anything but not UITableViewCellStyleDefault should this work, please see this for more details: cell.detailTextLabel. Text not working... why.
You have to set cell style as subtitle like below cell = UITableViewCell alloc initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier autorelease.
Anything but UITableViewCellStyleDefault should work with a detailLabel.
Add detailtextLabel on the cell's contentView.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.