- 博客(5)
- 资源 (6)
- 收藏
- 关注
原创 cocoa查找子视图
UIViews 的 subviews可以获取其下所有子视图,而viewWithTag方法可以根据tag获取某个指定的子视图。 [isKindOfClass:] 方法 可以判断某个对象是否是某个类的对象。 subviews可以得到所有子视图。
2013-02-19 10:33:18 909
转载 让UITableView自动滑动(定位)到某一行cell
NSIndexPath *scrollIndexPath = [NSIndexPath indexPathForRow:10 inSection:0]; [[self tableView] scrollToRowAtIndexPath:scrollIndexPath atScrollPosition:UITableViewScrollPositionTop animat
2013-02-18 19:07:44 11949 1
转载 objective-c 中字符串与日期转换和比较
objective-c 中字符串与日期相互转换 1、字符串转换为日期 NSDateFormatter* dateFormat = [[NSDateFormatter alloc] init];//实例化一个NSDateFormatter对象 [dateFormat setDateFormat:@"yyyy-MM-dd HH:mm:ss"];//
2013-02-18 09:44:02 7397
转载 优化UITableView性能
在iOS应用中,UITableView应该是使用率最高的视图之一了。iPod、时钟、日历、备忘录、Mail、天气、照片、电话、短信、Safari、App Store、iTunes、Game Center⋯几乎所有自带的应用中都能看到它的身影,可见它的重要性。 然而在使用第三方应用时,却经常遇到性能上的问题,普遍表现在滚动时比较卡,特别是table cell中包含图片的情况时。 实际上只要针对性
2013-02-17 16:11:24 642
转载 UIFont 设置字体
label.font = [UIFont fontWithName:@"Arial-BoldItalicMT" size:24]; 字体名如下: Font Family: American Typewriter Font: AmericanTypewriter Font: AmericanTypewriter-Bold Font Family: Apple
2013-02-17 13:41:32 568
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人