- 博客(13)
- 资源 (9)
- 收藏
- 关注
原创 swift 错误处理
swift2.0中字典Cannot subscript a value of type 'NSDictionary?' with an index of type 'String'错误处理
2015-08-27 16:20:58 1323
原创 swift 异常处理
//异常处理 do{ //代码 defer{ //代码 //该块方法出现异常则在异常出现后调用,然后进入处理异常代码 //没有出现异常则在do语句其它部分调用完成后
2015-08-26 17:00:23 381
原创 swift 选取图库中的图片
选取图库中的一张图片,并显示在UIImageView中 @IBOutlet weakvar imageView: UIImageView! @IBAction func pickerImg(sender:AnyObject) { //新建UIImagePickerController对象 let i=UIImag
2015-08-26 13:08:51 899
原创 swift 属性监视器
var att:Int=10{//改变前调用willSet,参数为新值willSet(newValue){ print(newValue) print(att)}//改变后调用didSet,参数为旧值didSet(oldValue){ print(oldValue) print(att)}}
2015-08-25 08:46:21 327
原创 swift 动画
//由dogImg转化成caImage,用时一秒,使用TransitionFlipFromRight效果,完成后调用completion指定方法UIView.transitionFromView(dogImg, toView:caImage, duration: 1, options:UIViewAnimationOptions.TransitionFlipFromRight, com
2015-08-24 18:42:52 366
原创 swift 绘图
继承UIView,在overridefuncdrawRect(rect: CGRect)中重写绘制方法 let context=UIGraphicsGetCurrentContext()获取画布 画线CGContextMoveToPoint(context,100,100)//移动起始点CGContextAddLineToPoint(context,150,
2015-08-23 18:57:45 260
原创 swift 跳转页面
跳转代码let vc= ViewController() //改成自己的类名self.presentViewController(vc,animated:true,completion:nil) 返回代码self.dismissViewControllerAnimated(true,completion:nil)
2015-08-22 16:48:21 499
原创 android动画(Animation)
AlphaAnimation 透明度AlphaAnimationalphaAnimation = new AlphaAnimation(0, 1); alphaAnimation.setDuration(1000); alphaButton.startAnimation(alphaAnimation); xmlversion="1.0
2015-08-09 23:21:59 490
universal-image-loader-1.9.2
2015-08-31
GifView.jar
2015-08-31
SystemBarTint SystemBarTintManager
2015-06-19
实现透明状态栏的SystemBarTintManager类
2015-06-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人