摘要:
{ NSMutableArray *_dataList; } [self loadDataWithPage:1]; [self loadDataWithURLConnection]; //记得初始化数组 _dataList =[NSMutableArray array]; -(void)loadDataWithURLConnection { /... 阅读全文
摘要:
//方法一: //创建定时器 NSTimer *timer=[NSTimer timerWithTimeInterval:2.0 target:self selector:@selector(nextCilcked) userInfo:nil repeats:YES]; //利用消息循环来开启定时器 //创建消息循环 NSRunLoop *runLoop ... 阅读全文
摘要:
{ CAGradientLayer *_layer; } //创建渐变层 _layer =[CAGradientLayer layer]; _layer.frame=self.view.frame; //设置渐变开始的坐标 _layer.startPoint=CGPointMake(0.0, 0.4); //设置渐变结束的坐标 ... 阅读全文