simply add a row to tableview
NSString *ref = [item stringByMat开发者_JAVA技巧ching: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
You'll have to add this to your dataSource and then do a [orderTable reloadData];
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];
}
精彩评论