(1)//通过NSObject的方法创建线程
//(这个方法会自动开辟一个后台线程,参数1:在这个后台线程中执行的方法,参数2:用于传递参数)
[self performSelectorInBackground:@selector(banZhuanPlus) withObject:nil];
(2)//通过NSThread创建线程(参数1:方法的执行者;参数2:在线程中执行的方法...
分类:
移动开发 时间:
2014-09-18 20:42:44
阅读次数:
205
这整个是一个cell,框框的放的image(有很多图片,可以左右滑动,我用iCarousel做的,这个的代理写在自定义cell类里面的)。现在需要点击图片进入下一个页面。。。。现在我点击图片,都会进入到自定义cell类里面的代理里,但是cell类里面,是不让我弹出下一个viewcontroller的。。??不然用[self.navigationController pushViewControll...
分类:
移动开发 时间:
2014-09-18 19:03:24
阅读次数:
212
控件获取有两种方式:1. IBOutlet:直接拖拽需要的控件到界面设计文件 *.h 的@interface和@end之间2. Tag:设置tag为12,通过如下代码获取lableUILabel* lable = (UILabel*) [self.view viewWithTag:12];but.....
分类:
移动开发 时间:
2014-09-18 18:46:34
阅读次数:
241
1 //隐藏分割线 2 [self setExtraCellLineHidden:_tableView]; 3 //隐藏多余分割线 4 -(void)setExtraCellLineHidden: (UITableView *)tableView 5 { 6 UIView *view = ...
分类:
其他好文 时间:
2014-09-18 16:09:14
阅读次数:
174
FROM :http://blog.163.com/weiwenjuan_bj/blog/static/14035033620129304183850/?suggestedreadingpublic:公有类型 在子类中可以通过self::var调用public方法或属性,parent::meth.....
分类:
Web程序 时间:
2014-09-18 16:01:14
阅读次数:
226
一个scrollview上有几个按钮在scrollview上add 了一个单击事件 singletap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)]; [singl....
分类:
其他好文 时间:
2014-09-18 14:31:13
阅读次数:
165
此方法可以自定义返回按钮,且不影响返回手势。
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:self action:nil];
self.navigationController.navigati...
分类:
其他好文 时间:
2014-09-18 13:21:13
阅读次数:
173
准备动画参数1,动画的作用(区分多个动画);参数二,传递参数用nil(用于UI)NULL(用于C语言)[UIViewbeginAnimations:@"改变大小"context:NULL];设置动画的代理[UIViewsetAnimationDelegate:self];设置后代理的方法(willstart)将不会执行[UIViewsetAnimationWillStartSelector:@sele..
分类:
其他好文 时间:
2014-09-18 03:19:03
阅读次数:
183
1.准备动画[UIViewbeginAnimations:@"过度动画"context:NULL];2.设置过度样式参数1.过度样式参数2:指定view做动画参数3.是否支持缓存[UIViewsetAnimationTransition:UIViewAnimationTransitionCurlDownforView:self.changeViewcache:YES];[UIViewsetAnimationDuration:5];3.提..
分类:
其他好文 时间:
2014-09-18 03:18:43
阅读次数:
160
参数1.动画时长参数2.Block(对UIView属性动画的封装)[UIViewanimateWithDuration:2animations:^{里面设置要修改的属性self.changeView.backgroundColor=[UIColorpurpleColor];}];
分类:
其他好文 时间:
2014-09-18 03:18:33
阅读次数:
183