摘要: -(UIView *)findView:(UIView *)aView withName:(NSString *)name{ Class cl = [aView class]; NSString *desc = [cl description]; NSLog(@"********%@",desc); if ([name isEqualToString:desc]) return aView; for (NSUInteger i = 0; i < [aView.subviews count]; i++) { UIView *subView = [aView.subvie 阅读全文
posted @ 2011-07-12 12:05 小菜比 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 大多数时候我们使用uiimage时候用[UIImage imageNamed:@"xxxx.png"];但是这样会创建一个自动释放池,一般用路径来初始化uiimageUIImage *image=[[UIImage alloc] initWithContentsOfFile:[[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"xxx.png"]]; UIImageView *imageView = [[UIImageView alloc] initWithImage:i 阅读全文
posted @ 2011-07-12 11:48 小菜比 阅读(465) 评论(0) 推荐(0) 编辑