Reputation: 1438
NSString *ref = [item stringByMatching:myregex1 capture:2];
NSString *value = [item stringByMatching:myregex1 capture:3];
I simply need to add this to my orderTable uitableview, how the hell do i do it:P. i cannot find a simple way of doing this please help :)
i would like it to be in the uitableview like this
(@"%@ :: %@", ref, value)
Thanks
Upvotes: 0
Views: 110
Reputation: 18741
If you want it to be in a specific cell, then in the method cellForRowAtIndexPath:
, check for the first or the last cell and do:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
// Cell Return
cell.textLabel.text = [NSString stringWithFormat@"%@ :: %@", ref, value];
}
Upvotes: 0
Reputation: 51
You'll have to add this to your dataSource and then do a [orderTable reloadData];
Upvotes: 1