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