03 2013 档案
摘要:Initializing a UITableView Object //初始化UITableView对象- (id)initWithFrame:(CGRect)frame style:(UITableViewStyle)style //通过Frame初始化Configuring a Table View //配置Table视图@property(nonatomic, readonly) UITableViewStyle style //Table样式(可选UITableViewStylePlain, UITableViewStyleGrouped)- (NSInteger)numberOfRo
阅读全文
摘要:1 - (void)viewDidLoad 2 { 3 [super viewDidLoad]; 4 // Do any additional setup after loading the view. 5 //创建一个模拟从coreData创建的数据 6 NSMutableArray *data = [NSMutableArray arrayWithObjects: 7 [NSDictionary dictionaryWithObjectsAndKeys:@"宫保鸡丁", @"name", @"鸡丁、辣...
阅读全文
摘要:如题,是不是大家为了方便都这样加载图片啊myImage = [UIImage imageNamed:@"icon.png"];那么小心了这种方法在一些图片很少,或者图片很小的程序里是ok的。但是,在大量加载图片的程序里,请千万不要这样做。为什么呢 ???????这种方法在application bundle的顶层文件夹寻找由供应的名字的图象 。 如果找到图片,装载到iPhone系统缓存图象。那意味图片是(理论上)放在内存里作为cache的。试想你图片多了,是什么后果``````图片cache极有可能不会响应 memory warnings and release its o
阅读全文