共 9 篇文章 |
|
关于XIB 设置frame问题在我们设置一些公用的UIView的时候使用XIB创建View的时候会发现有时候frame没法改变。- (instancetype)initWithFrame:(CGRect)frame{self = [super initWithFrame:frame];NSArray *nibs=[[NSBundle mainBundle]loadNibNamed:@"ThirdLoginView" owner:nil options:nil];_myframe = frame;self.frame = _myframe; 阅324 转0 评0 公众公开 17-08-30 10:51 |
NSString *testString = [[NSString alloc] initWithData:[data subdataWithRange:NSMakeRange(0, 12)] encoding:NSASCIIStringEncoding];NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];NSString *ap... 阅85 转0 评0 公众公开 17-06-27 16:26 |
常见解决问题博客1、Xcode8的assets问题导致运行iOS8崩溃的解决方案http://www.tuicool.com/articles/meiMZze. 阅20 转0 评0 公众公开 16-12-21 15:25 |
LoveSeasonLee的360doc知识版图(2015)LoveSeasonLee 馆友:你好!又一年过去了,回望2015年,有人忙着抢头条,有人忙着拼颜值,你在忙些什么?时间从不说谎,付出终有回报。360doc也是蛮拼的,加班加点整理出你的知识版图,为你在360doc的这一年划上句号。点击下方链接,查看你的360doc知识版图(2015)吧! 阅14 转0 评0 公众公开 16-11-16 16:55 |
NSInteger i = arrayNew.count >arrayNow.count?arrayNow.count : arrayNew.count;NSString* strNew = [arrayNew objectAtIndex:j];NSString* strNow = [arrayNow objectAtIndex:j];if ([strNew integerValue] >[strNow integerValue]) {if ([strNew integerValue] <[strNow integerValue]) {if (arrayNew.count >arrayNow.count) ... 阅110 转0 评0 公众公开 16-08-08 11:54 |
CocoaPods遇到在用到CocoaPods时候突然出现这样的问题检查CocoaPods目录下文件是否存在$which pod~/.cocoapods移除cocoapods$sudo rm-rf<path>安装$ sudogem installcocoapods-v 1.0.1.ERROR: While executing gem ...(Errno::EPERM)Operation not permitted - /usr/bin/pod.sudo gem install -n /usr/local/bin cocoapods. 阅35 转0 评0 公众公开 16-07-12 14:04 |
Cocopods遇到proxy代理连接不上问题1、首先打开终端输入cat ~/.gitconfig查看是否有proxy代理,2、然后依次输入下面命令:git config --global --unset http.proxy git config --global --unset https.proxy好了移除代理了。 阅107 转0 评0 公众公开 16-07-12 11:27 |
gem sources --remove https://rubygems.org/gem source -a https://gems.ruby-china.org.第二个命令是添加ruby-china的RubyGems镜像(很多旧教程都是说使用taobao的gem源,但是taobao的gem源已经停止维护了,原文:https://ruby-china.org/topics/29250)。接下来运行一个命令查看是否成功添加了ruby-china的gem源:gem过旧,使用以下命令更新一下... 阅1342 转10 评0 公众公开 16-07-11 11:44 |