摘要: 如果要移除一个 UIView 的所有子视图,SDK 里没有 remove all 之类的方法。可以用 for loop 循环调用 – removeFromSuperview 来移除 例如:for(UIView *view in [self.view subviews]){ [view removefromsuperview]} 阅读全文
posted @ 2014-02-21 16:46 徐坤很无聊 阅读(139) 评论(0) 推荐(0) 编辑
摘要: -------------------转载请注明出处------------------------------------------此类继承于UIView.引入头文件,初始化对象,设置代理,只需要传入一个盛放图片的数组即可.-------------------转载请注明出处------------------------------------------以下为.h文件#import @protocol ImageScrollViewDelegate - (void)tapImageAtIndex:(int)index;@end@interface ImageScrollView : U 阅读全文
posted @ 2014-02-21 15:30 徐坤很无聊 阅读(147) 评论(0) 推荐(0) 编辑