Hello guys,
firstable i want to say is that i´m new here and the forum is the best place i have seen for iphone development.
My configuration: Tab Bar with tableView -> klick on row -> detailview
My problem: i make a request with asihttp. so far so good. i get a response
like:
name;tel;email
Hans Mustermann;0123/45678;info@yourdomain.com
Harry the second;98765/12345;my@email.com
in moment i handle the response like:
NSArray *cusNameDataArray = nil;
cusNameDataArray = [[response componentsSeparatedByString:@"\n"]retain];
self.cusNameDataArray =[[NSMutableArray alloc] initWithArray:cusNameDataArray];
[cusNameDataArray release];
and in:
-(UITableViewCell *)tableView

UITableView *)cusTableView cellForRowAtIndexPath

NSIndexPath *)indexPath {
static NSString *identifier = @"Cell";
UITableViewCell *cell = [self.cusTableView dequeueReusableCellWithIdentifier:identifier];
if(cell == nil)
//cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:identifier] autorelease];
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:identifier] autorelease];
// Set up the cell...
cell.textLabel.font = [UIFont fontWithName:@"Verdana" size:12];
cell.textLabel.text =
here i want the name
cell.detailTextLabel.font = [UIFont fontWithName:@"Verdana" size:10];
cell.detailTextLabel.text =
here i want the email and tel;
return cell;
}
you can see that i just want the name in
cell.textLabel.text and in
cell.detailTextLabel.text the email and telefon
can somebody help me an give me an example? i waste so much time for this solution but nothing found.