11 2017 档案

摘要:.h文件 #import <UIKit/UIKit.h>@interface YTProgressView : UIView@property (nonatomic, copy) NSString *progressString;@property (nonatomic, strong) UILab 阅读全文
posted @ 2017-11-28 11:20 弋小木 阅读(349) 评论(0) 推荐(0) 编辑
摘要:.h中的方法名 #import <Foundation/Foundation.h>@interface NSData (Security)- (NSData *)AES256EncryptWithKey:(NSString *)key;- (NSData *)AES256DecryptWithKey 阅读全文
posted @ 2017-11-28 10:30 弋小木 阅读(150) 评论(0) 推荐(0) 编辑
摘要:#define ViewOf(__View__,__TAG__) [__View__ viewWithTag:__TAG__]#define LabelOf(__View__,__TAG__) ((UILabel*)[__View__ viewWithTag:__TAG__])#define Ima 阅读全文
posted @ 2017-11-28 10:25 弋小木 阅读(84) 评论(0) 推荐(0) 编辑
摘要:+ (NSString *)iphoneType { // 需要导入头文件:#import <sys/utsname.h> struct utsname systemInfo; uname(&systemInfo); NSString *platform = [NSString stringWith 阅读全文
posted @ 2017-11-28 10:20 弋小木 阅读(2178) 评论(0) 推荐(0) 编辑
摘要:在苹果系统升级到iOS11之后,页面的返回按钮的点击区域是根据设置的按钮的frame来确定的,在设置按钮太小的时候,点击就会出现点击多次才能点击到一次的现象,处理的方法就是设置按钮的frame变大代码如下: UIButton *btnLeft = [[UIButton alloc] initWith 阅读全文
posted @ 2017-11-28 09:52 弋小木 阅读(269) 评论(0) 推荐(0) 编辑