开发者

simply add a row to tableview

开发者 https://www.devze.com 2023-01-18 05:43 出处:网络
NSString *ref = [item stringByMat开发者_JAVA技巧ching:myregex1 capture:2]; NSString *value = [item stringByMatching:myregex1 capture:3];
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];
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号