一、制作静态库文件 二、配置静态库文件 三、运行项目,生成静态库 1、用模拟器运行一次; 2、用真机运行一次; 四、静态库完成 libaMakeA.a >show in finder 五、将模拟器和真机的.a 合并 终端:wangyalu:~ wangyalu$ lipo -create /User ...
分类:
移动开发 时间:
2017-01-11 15:55:22
阅读次数:
373
//进入按钮 UIButton *enterMainButton = [[UIButton alloc] initWithFrame:CGRectMake(65, self.PageHeight-120,250 , 45)]; enterMainButton.layer.borderWidth = ... ...
分类:
移动开发 时间:
2017-01-11 15:43:27
阅读次数:
345
该文章引用自:http://www.jianshu.com/p/3d5ccbde0de1 IOS 微信聊天发送小视频的秘密(AVAssetReader+AVAssetReaderTrackOutput播放视频) 对于播放视频,大家应该一开始就想到比较方便快捷使用简单的MPMoviePlayerCon ...
分类:
其他好文 时间:
2017-01-07 16:35:04
阅读次数:
410
1.uiimageView 和按钮比较特殊,可以只设置其x,y就可以。 2.可以设置其丝例,如1:1,或者当前图片的比例,这样保证不会变形,设置比例在自身上点击control拉个线,选择 3.在右侧就可以根据需求改变比例。 ...
分类:
其他好文 时间:
2017-01-06 21:45:17
阅读次数:
238
// 获得当前的版本 #define iOS(version) ([UIDevice currentDevice].systemVersion.doubleValue >= (version)) #define ColorA(r, g, b, a) [UIColor colorWithRed:(r) ...
分类:
其他好文 时间:
2017-01-06 18:35:39
阅读次数:
171
- (void)viewDidLoad { [super viewDidLoad]; // 创建一个UIActivityIndicatorView,大小是固定的 UIActivityIndicatorView *aiv = [[UIActivityIndicatorView alloc] initW ...
分类:
其他好文 时间:
2017-01-03 11:53:17
阅读次数:
206
1. UIImage imageWithContentsOfFile卡顿 [[UIImage alloc] initWithContentsOfFile 卡顿 2.uitableview scroll to top NSIndexPath *indexPath = [NSIndexPath inde ...
分类:
其他好文 时间:
2016-12-30 13:26:45
阅读次数:
220
1新对象方法和分类方法的命名规范? 通常大家都以类名开头,这样见类名即可敲出该类的方法,比如Color类的方法一般命名为 + (UIColor *)colorWithWhite:(CGFloat)white alpha:(CGFloat)alpha;等等 我们写一个新类比如person类,其实还蛮合 ...
分类:
其他好文 时间:
2016-12-27 20:22:39
阅读次数:
184
//获取字符串的宽度 -(float)widthForString:(NSString *)value fontSize:(float)fontSize andHeight:(float)height { UIColor *backgroundColor=[UIColor blackColor]; ... ...
分类:
移动开发 时间:
2016-12-26 21:49:54
阅读次数:
288
绘制一条虚线,此方法可以写到UIImage的分类中,直接写成类方法调用即可。 ...
分类:
其他好文 时间:
2016-12-25 11:30:34
阅读次数:
200