- 博客(24)
- 收藏
- 关注
原创 解决真机版本高于Xcode模拟器版本不能测试问题
首先下载最新的真机测试文件包1 打开Finder2 找到应用程序文件夹3 在里面找到XCode4 点击XCode,右键,显示包内容5 Contents-->Developer-->Platforms-->iPhoneOS.platform-->DeviceSupport 然后你就能看到你的Xcode支持的真机测试的一些系统型号对应的文件将文件包拖入文件夹 从新打
2016-11-07 10:31:48
749
原创 使用CIFilter 为照片添加各种滤镜效果
https://developer.apple.com/library/content/documentation/GraphicsImaging/Reference/CoreImageFilterReference/#//apple_ref/doc/filter/ci/CIMaskedVariableBlur滤镜效果种类 官方文档快捷入口 //滤镜效果- (NSArray
2016-10-26 15:29:42
2050
转载 iOS的各种开源项目集合
http://blog.youkuaiyun.com/livexiaopo/article/details/52101445iOS的各种开源项目集合 好用的轮子
2016-10-08 17:22:08
265
原创 为图片添加文字
#import "UIImage+watermark.h"#define RGB_COLOR(R,G,B)[UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:1.0]@implementation UIImage (watermark)- (UIImage *)wa
2016-08-10 11:53:09
290
原创 发布环境下关闭NSLog
为了方便测试 进行下面的操作Product -> scheme ->new scheme ->Info (Build configuration 设置为 Release ) 按下图进行设置:新建prefix header.pch 文件 添加 下面的宏:#ifdef DEBUG#define DLog(...)NSLog(
2016-07-01 14:28:32
567
转载 today extension 扩展使用
http://blog.youkuaiyun.com/ralbatr/article/details/44194389效果图:
2016-06-27 16:16:06
453
转载 iOS 设置的字体的大小与PS字体大小的关系
UIFontParametersfontSizeThe size (in points) to which the font is scaled. This value must be greater than 0.0.fontSize实际的参数是pointSize,是像素点。windows和mac上的字号是统一的。英文字体的1磅,相当于1/72 英寸,约等于1/2.8
2016-06-06 14:02:44
1004
原创 #FFFFFF 和RGB的相互转化
#00b3e9 --->RGB(0,179,233)的转化float R = (float)((0x00b3e9 &0xFF0000)>>16); --> 0float G = (float)((0x00b3e9 &0xFF00)>>8); --> 179float B = (float)((0x00b3e9 &0xFF)); -->
2016-06-03 15:51:22
5538
原创 苹果系统升级 为 OS X EL Capitan 后安装 cocoapods
1.移除现有Ruby默认源$gem sources --remove https://rubygems.org/2.使用新的源$gem sources -a https://ruby.taobao.org/3.验证新源是否替换成功$gem sources -l4.安装CocoaPods $sudo gem install -n /usr/lo
2016-05-31 15:54:40
591
原创 集成shareSDK3.3.0所遇到的问题
-[NSConcreteMutableData wbsdk_base64EncodedString]: unrecognized selector sent to instance 0x78ee7e20Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSConcreteMuta
2016-05-27 16:14:48
862
原创 iOS9Launch Image 设置
1.在项目中找到Assets,xcassets 文件 在左侧空白处右键选择->App Icons and Launch Images -> New iOS Launch Images 创建LaunchImage按尺寸大小将图片拖入对应的方格中640*960 (4/4s) 2X位置640*1136 (5
2016-05-23 11:14:57
392
转载 支付宝支付 微信支付 SDK的集成教程
微信支付:http://www.cnblogs.com/jys509/p/5130990.html支付宝支付: http://www.bubuko.com/infodetail-1121251.html
2016-04-26 17:07:34
536
转载 谓词的使用(predicate)
原文:http://blog.youkuaiyun.com/quanzheng92/article/details/46532021/** 一 运算符*/// 1 "> = between" 比较运算符 NSPredicate *predicate =[NSPredicatepredicateWithFormat:@"age > 3"];
2016-04-16 10:21:35
1019
原创 禁止输入表情
// 不让输入表情 if ([textField/textView isFirstResponder]) { if ([[[textField/textView textInputMode] primaryLanguage] isEqualToString:@"emoji"] || ![[textField/textView textInputMode] pri
2016-04-11 19:10:38
470
转载 手机号判断
// 正则判断手机号码地址格式- (BOOL)isMobileNumber:(NSString *)mobileNum {// 电信号段:133/153/180/181/189/177// 联通号段:130/131/132/155/156/185/186/145/176// 移动号段:134/135/136/137/138/139/150/151/152/157/158
2016-04-11 11:38:50
421
原创 CUICatalog: Invalid asset name supplied: (null), or invalid scale factor: 2.000000错误解决方案
[[UIImage imageNamed:@""] 当后面的字符串为空时,会出现题目中的错误if (imagstr != nil) { cell.imageView.image =[UIImage imageNamed:imagstr]; }
2016-04-01 16:57:11
328
原创 获取网络状态
UIApplication * app =[UIApplication sharedApplication]; NSArray *children =[[[app valueForKeyPath:@"statusBar"] valueForKeyPath:@"foregroundView"] subviews]; int type = 0;
2016-03-27 17:33:33
293
转载 基于面向协议MVP模式下的软件设计-iOS篇
//原文地址:http://help.3g.163.com/15/1223/06/BBGISBCJ00964KAD.html传统模式下的开发MVCMVVM基于面向协议MVP的介绍MVP实战开发说在前面:相信就算你是个iOS新手也应该听说过MVC的,MVC是构建iOS App的标准模板。随着时间的推移,在iOS平台上MVC也逐渐开始面临着越来越
2016-03-27 16:19:23
453
原创 图片模糊效果
#import "UIImage+Blur.h"#import @implementation UIImage (Blur)//图片模糊方法+ (UIImage *)boxblurImage:(UIImage *)image withBlurNumber:(CGFloat)blur{ if (blur 1.f) { blur =
2016-03-21 15:26:02
437
原创 UIPickerView控件中自定义 及 改变当前选中的Item的字体颜色
#pragma mark -UIPickerViewDelegate- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView{ return 2;}- (NSInteger)pickerView:(UIPickerView *)pickerView nu
2016-03-15 18:04:32
3082
1
转载 UIPickerView控件中自定义显示的字体大小及样式
//重写方法- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view{ UILabel* pickerLabel = (UILabel*)view;
2016-03-15 16:52:31
7740
原创 是否全屏
if (!_isFullScreen) { _isFullScreen =YES; [[UIApplicationsharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight]; [[UIApplic
2016-01-18 19:18:13
633
转载 转屏方法
//转屏 if ([[UIDevicecurrentDevice] respondsToSelector:@selector(setOrientation:)]) { SEL selector = NSSelectorFromString(@"setOrientation:"); NSInvocation *invocation =
2016-01-18 10:49:32
492
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人