App内存性能优化
摘要:http://blog.jobbole.com/37984/
阅读全文
posted @
2015-11-16 14:12
拿起放不下
阅读(114)
推荐(0)
支付宝集成
摘要:1.新建工程2.把PayFrameWork文件夹拖入到工程中3.导入系统库SystemConfiguration.framework4.在Appdelegate中导入头文件#import 5.在AppDelegate中添加回调方法- (BOOL)application:(UIApplication ...
阅读全文
posted @
2015-11-15 18:08
拿起放不下
阅读(294)
推荐(0)
友盟分享
摘要:友盟分享导入库的方法1.先导入这个文件夹UMSocial_Sdk_4.32.在UMSocial_Sdk_4.3的一级子目录下导入UMSocial_Sdk_Extra_Frameworks(里面是Sina,TencentOpenAPI等)
阅读全文
posted @
2015-11-09 15:49
拿起放不下
阅读(184)
推荐(0)
QQ分享登陆报错
摘要:linker command failed with exit code 1 (use -v to see invocation)报错原因builtSetting下搜索bitco改为NO
阅读全文
posted @
2015-11-09 11:45
拿起放不下
阅读(166)
推荐(0)
判断字符串是否是手机号
摘要:-(BOOL) isValidateMobile:(NSString *)mobile{ //手机号以13, 15,18开头,八个 \d 数字字符 NSString *phoneRegex = @"^((13[0-9])|(15[^4,\\D])|(18[0,0-9]))\\d{8}$"; N...
阅读全文
posted @
2015-11-08 21:20
拿起放不下
阅读(1465)
推荐(0)
监测多个textFiled.text的长度同时不小于0
摘要:#pragma mark - 显示超过11位不让输入- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string...
阅读全文
posted @
2015-11-08 20:30
拿起放不下
阅读(189)
推荐(0)
设置TextFiled输入长度限制
摘要:#pragma mark - 显示超过11位不让输入- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string...
阅读全文
posted @
2015-11-08 17:19
拿起放不下
阅读(375)
推荐(0)
按钮添加边框和边框色
摘要://按钮边框宽度 [_numberButton.layer setBorderColor:[UIColor colorWithRed:28/255.0 green:162/255.0 blue:66/255.0 alpha:1].CGColor]; [_numberButton.layer se...
阅读全文
posted @
2015-11-08 16:05
拿起放不下
阅读(1022)
推荐(0)
按钮字体添加下划线
摘要:NSMutableAttributedString * string = [[NSMutableAttributedString alloc] initWithString:@"立即注册"]; NSRange strRange = {0,[string length]}; [string a...
阅读全文
posted @
2015-11-08 15:12
拿起放不下
阅读(302)
推荐(0)
字符串转化为可执行的方法
摘要://调用的方法名为array[1] SEL sel = NSSelectorFromString(array[1]); [self performSelector:sel];// 警告为自动内存管理产生
阅读全文
posted @
2015-11-03 10:40
拿起放不下
阅读(331)
推荐(0)