Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{return 1;}-(NSInteger)tableView:(UITableView *)tableViewnumberOfRowsInSection:(NSInteger)section{return self.lists.count;}-(UITableViewCell *)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath {static NSString *CellIdentifier = @"Cell";UITableViewCell *cell = [tableViewdequeueReusableCellWithIdentifier:CellIdentifierforIndexPath:indexPath];// Ustawienie komórkiNSManagedObject *device = [self.devicesobjectAtIndex:indexPath.row];[cell.textLabel setText:[NSStringstringWithFormat:@"%@ %@", [listsvalueForKey:@"product"], [listsvalueForKey:@"number"]]];[cell.detailTextLabel setText:[listsvalueForKey:@"type"]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement