- 博客(6)
- 收藏
- 关注
原创 UIButton多参数传值实现
首先, - (void)addTarget:(nullable id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents; 这个方法,默认可以给我们用的两个参数是(UIButton * )和(UIEvent * ),即action:(SEL)action——>action:@selector(clic
2016-06-11 23:11:49
781
原创 UIPageControl点击小圆点跳转到对应位置的方法
由于UIPageControl中响应事件并没有像点击的location找indexpath的方法(tableView中是可以的:indexPathForRowAtPoint:CGpoint方法)因此我们在UIPageControl需要自己来实现这种类似方法。
2016-06-05 19:36:24
5846
原创 各种iPhone型号的tabbar,导航栏宽高,备用
iPhone4s:2016-06-05 13:24:04.260 forMobile[1132:64159] tab width - 320.0000002016-06-05 13:24:04.261 forMobile[1132:64159] tab height - 49.0000002016-06-05 13:24:06.316 forMobile[1132:64159] s
2016-06-05 13:28:31
1029
原创 ruby安装过程留着备用
先安装 [Xcode]步骤1 - 安装 RVM $ curl -L https://get.rvm.io | bash -s stable期间可能会问你sudo管理员密码,以及自动通过homebrew安装依赖包,等待一段时间后就可以成功安装好 RVM。 $ source ~/.rvm/scripts/rvm检查一下是否安装正确 $ rvm -v
2016-05-24 00:58:31
507
原创 NSArray/NSMutableArray
- (void)viewDidLoad { [super viewDidLoad]; [self myArry]; [self myMutableArray]; // Do any additional setup after loading the view, typically from a nib.}-(void)myArry{
2016-05-20 18:03:23
286
原创 NSDictionary/NSMutableDictionary
- (void)viewDidLoad { [superviewDidLoad];// [self mydic]; [selfmyMutableDic];}-(void)mydic{ NSDictionary* dic; //初始化dic dic = [NSDictionarydictionaryWithObj
2016-05-17 18:44:23
350
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人