会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
寻找小猪
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
下一页
2015年11月23日
通讯录开发
摘要: 开发目标:本次需求仅仅只需读取通讯录信息- (void)loadPerson{ ABAddressBookRef addressBookRef = ABAddressBookCreateWithOptions(NULL, NULL); if (ABAddressBookGetAu...
阅读全文
posted @ 2015-11-23 10:59 寻找小猪
阅读(186)
评论(0)
推荐(0)
2015年11月19日
UIGestureRecognizer手势
摘要: 常用手势: 滑动,轻点,捏合,旋转,拖拽,长按1.滑动(快速滑动)let swipeUp = UISwipeGestureRecognizer(target: self, action: Selector("swipe:"))swipeUp.direction = UISwipeGestureRec...
阅读全文
posted @ 2015-11-19 14:29 寻找小猪
阅读(269)
评论(0)
推荐(0)
UIScrollView
摘要: 创建scrollviewscrollView = UIScrollView()scrollView.delegate = selfscrollView.frame = self.view.boundslet imageView = UIImageView(image: UIImage(named: ...
阅读全文
posted @ 2015-11-19 13:57 寻找小猪
阅读(126)
评论(0)
推荐(0)
UIStepper
摘要: 创建并设置相关属性var stepper : UIStepper!//微调器var label : UILabel!stepper = UIStepper()stepper.frame = CGRectMake(50, 200, 280, 50)stepper.minimumValue = 0//最...
阅读全文
posted @ 2015-11-19 11:56 寻找小猪
阅读(178)
评论(0)
推荐(0)
UIPickerView
摘要: //遵守协议时需要把必须遵守的协议都实现了否则报红UIPickerViewDelegate,UIPickerViewDataSource创建PickerViewpickerView = UIPickerView()pickerView.delegate = selfpickerView.dataSo...
阅读全文
posted @ 2015-11-19 11:44 寻找小猪
阅读(245)
评论(0)
推荐(0)
UIAlertController
摘要: 自iOS8起,苹果就建议告警框使用UIAlertController来代替UIAlertView在ViewDidLoad中加载时报错 whose view is not in the window hierarchy! 视图没创建出来之前是不能弹出来的解决办法,延长时间加载1.一般的提示框func ...
阅读全文
posted @ 2015-11-19 11:30 寻找小猪
阅读(167)
评论(0)
推荐(0)
UIActionSheet
摘要: introduced=2.0, deprecated=8.3 早已废弃 还是拥抱 UIAlertController 吧创建UIActionSheetlet actionSheel = UIActionSheet()actionSheel.addButtonWithTitle("取消")action...
阅读全文
posted @ 2015-11-19 11:21 寻找小猪
阅读(131)
评论(0)
推荐(0)
UIAlertView
摘要: introduced=2.0, deprecated=9.0 ios9已经废弃 建议使用UIAlertController创建AlertViewlet alertView = UIAlertView()alertView.title = "温馨提示"alertView.message = "UIAl...
阅读全文
posted @ 2015-11-19 11:13 寻找小猪
阅读(168)
评论(0)
推荐(0)
UISlider
摘要: 创建UISliderlet slider = UISlider(frame: CGRectMake(50, 100, 280, 50))slider.backgroundColor = UIColor.clearColor()slider.minimumValue = 0//最小值slider.ma...
阅读全文
posted @ 2015-11-19 11:04 寻找小猪
阅读(128)
评论(0)
推荐(0)
UIProgressView
摘要: 创建UIProgressViewlet progressView = UIProgressView(progressViewStyle:.Default)progressView.frame = CGRectMake(20, 100, 300, 0)self.view.addSubview(prog...
阅读全文
posted @ 2015-11-19 10:54 寻找小猪
阅读(146)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告