摘要:
-(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 阅读全文
摘要:
大多数时候我们使用uiimage时候用[UIImage imageNamed:@"xxxx.png"];但是这样会创建一个自动释放池,一般用路径来初始化uiimageUIImage *image=[[UIImage alloc] initWithContentsOfFile:[[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"xxx.png"]]; UIImageView *imageView = [[UIImageView alloc] initWithImage:i 阅读全文