摘要: Vue2.0组件间数据传递 阅读全文
posted @ 2017-01-06 16:01 Zsmile 阅读(36172) 评论(0) 推荐(1) 编辑
摘要: iOS10推送适配push通知 阅读全文
posted @ 2016-09-20 18:29 Zsmile 阅读(8828) 评论(2) 推荐(0) 编辑
摘要: button快速点击时,会导致,同一动作执行多次,常用解决办法: 第一种方法:推荐 第二种方法:这种对快速点击多次并不会有太大作用,无法控制button的点击方法。 阅读全文
posted @ 2016-09-09 13:21 Zsmile 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 效果:#import @interface HsProfitRatePieWidgets : UIView{ UILabel *_textLabel;}@property (nonatomic) double progress;@property (nonatomic) NSInteger s... 阅读全文
posted @ 2015-01-19 16:07 Zsmile 阅读(1672) 评论(0) 推荐(0) 编辑
摘要: 压缩图片,图片的大小与我们期望的宽高不一致时,我们可以将其处理为我们想要的宽高。传入想要修改的图片,以及新的尺寸-(UIImage*)imageWithImage:(UIImage*)image scaledToSize:(CGSize)newSize{// Create a graphics im... 阅读全文
posted @ 2015-01-07 13:28 Zsmile 阅读(1709) 评论(0) 推荐(0) 编辑
摘要: Swift数组的使用,参考:《TheSwiftProgramming Language》中文版// Copyright (c) 2015年 Zsmile. All rights reserved.//import UIKitclass ViewController: UIViewControlle... 阅读全文
posted @ 2015-01-07 08:46 Zsmile 阅读(280) 评论(0) 推荐(0) 编辑
摘要: UIButton的imageView和titleLabel的位置设置通过setImageEdgeInsets和setTitleEdgeInsets来设置参考:http://blog.csdn.net/dfqin/article/details/37813591及http://blog.sina.co... 阅读全文
posted @ 2015-01-06 14:24 Zsmile 阅读(2232) 评论(0) 推荐(0) 编辑
摘要: 1 UIButton *tempBtn = [UIButton buttonWithType: UIButtonTypeCustom]; 2 tempBtn.frame = CGRectMake(50, 250, 80, 40); 3 4 NSMutableAtt... 阅读全文
posted @ 2015-01-05 10:53 Zsmile 阅读(363) 评论(0) 推荐(0) 编辑
摘要: UITextField *text = [[UITextField alloc] initWithFrame:CGRectMake(50, 200, 200, 40)];text.borderStyle = UITextBorderStyleRoundedRect; NSMutableAttr... 阅读全文
posted @ 2015-01-05 10:47 Zsmile 阅读(230) 评论(0) 推荐(0) 编辑
摘要: /*使用与Object-C基本类似,只做简单地使用,创建表及其设置数据源和代理*/import UIKitclass ViewController: UIViewController,UITableViewDelegate,UITableViewDataSource { var _tableVie... 阅读全文
posted @ 2015-01-04 13:10 Zsmile 阅读(227) 评论(0) 推荐(0) 编辑

屛去雕饰,反近自然。