UItableviewCell 关于Index
2013-11-25 15:08
387 查看
NSString *textString ;
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:2];
MemInforCell *cell=(MemInforCell *)[self.infoTable cellForRowAtIndexPath:indexPath];
NSArray *viewArrays=[cell subviews];
for (id object in viewArrays) {
if ([object isKindOfClass:[UITextField class]]) {
UITextField *textfield=(UITextField *)object;
textString = textfield.text;
}
}
//获得section
// NSInteger section = [[self.infoTable indexPathForCell:(UITableViewCell *)[textField superview]] section];
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:2];
MemInforCell *cell=(MemInforCell *)[self.infoTable cellForRowAtIndexPath:indexPath];
NSArray *viewArrays=[cell subviews];
for (id object in viewArrays) {
if ([object isKindOfClass:[UITextField class]]) {
UITextField *textfield=(UITextField *)object;
textString = textfield.text;
}
}
//获得section
// NSInteger section = [[self.infoTable indexPathForCell:(UITableViewCell *)[textField superview]] section];
相关文章推荐
- 关于Relay Log无法自动删除的问题(Neither --relay-log nor --relay-log-index were used)
- 关于mysql中的key和index
- 关于lamp去掉index.php
- 关于Git无法提交 index.lock的解决办法
- 关于问题:reason: '* -[NSCFArray insertObject:atIndex:]: mutating method sent to immutable..
- 关于for循环中的 object[i].index = i;
- html离线存储之indexdDB 关于Cannot read property 'transaction' of undefined的问题(二)
- 关于uitableviewcell的accessoryType属性
- 关于z-index的总结
- 关于UItableViewCell上加载UIWebView自适应高度问题
- lua 关于__index,__newindex的理解
- 关于 index
- Oracle中关于bitmap index的使用问题
- 关于对Canvas.ZIndex的认识误区
- 【转】关于UItableViewCell的accessoryType属性
- 关于array objectAtIndex 出来的model 的内存地址的注意
- 关于z-index的那些事儿
- 关于分区技术的索引 index
- 关于ios7的uitableviewcell默认的分割线到头的问题
- 关于CSS中的float和position和z-index