摘要: scrollsToTop小结UIScrollView是用来展示滚动的一个类。他有UITableView、UITextView等子类,scrollsToTop是UIScrollView的一个属性,主要用于点击设备的状态栏时,是scrollsToTop == YES的控件滚动返回至顶部。每一个默认的UIScrollView的实例,他的scrollsToTop属性默认为YES,所以要实现某一UIScrollView的实例点击设备状态栏返回顶部,则需要关闭其他的UIScrollView的实例的scrollsToTop属性为NO,很好理解,若多个scrollView响应返回顶部的事件,系统就不知道到底要 阅读全文
posted @ 2013-07-18 21:51 nanoCramer 阅读(2470) 评论(0) 推荐(1) 编辑
摘要: 忘记从哪里看到的这个了,不过非常有用,记录下来!// Recursively travel down the view tree, increasing the indentation level for children- (void)dumpView:(UIView *)aView atIndent:(int)indent into:(NSMutableString *)outstring{for (int i = 0; i < indent; i++) [outstring appendString:@"--"];[outstring appendFormat: 阅读全文
posted @ 2013-07-18 21:31 nanoCramer 阅读(219) 评论(0) 推荐(0) 编辑