您的位置:首页 > 移动开发 > IOS开发

iOS buttonWithType:101 苹果私有api

2013-10-23 14:36 441 查看
无意中发现,有人创建UIButton这样写

UIButton *previousButton = [UIButtonbuttonWithType:101];

一看原来是私有api

UIButton *previousButton = [UIButton buttonWithType:101];
[previousButton setTitle:@"<" forState:UIControlStateNormal];
previousButton.frame = CGRectMake(0.f, 0.f, 30.f, 80.f);
previousButton.center = CGPointMake(previousButton.frame.size.width / 2.f, pagingView.center.y);
[previousButton addTarget:pagingView action:@selector(scrollToPreviousPage) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:previousButton];


  


更多UIButton 私有api

http://www.yifeiyang.net/iphone-development-skills-of-the-private-api-3-uibutton/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: