11 2013 档案

摘要:一:修改organization name 在终端下defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ORGANIZATIONNAME="XXXX";}'XXX处填上你的要写的;二:修改company identifier 这里的 company identifier 默认是你上一次填写的内容;三:参考:http://stackoverflow.com/questions/2956464/where-do-i-set-my-company-namehttp://stackov 阅读全文
posted @ 2013-11-29 14:52 cocoajin 阅读(3218) 评论(0) 推荐(0) 编辑
摘要:折腾了一下午终于在黑苹果上成功的安装了网卡,声卡驱动;我的配置:主板 ASUS b75m-a声卡 ALC887网卡 RTL8168F安装所需工具:MutiBest 下载OS对应的版本即可http://www.tonymacx86.com/downloads.php?do=cat&id=3(需注册)Kext Utility 权限修复工具http://cvad-mac.narod.ru/index/0-4声卡驱动安装--如图MutilBeast选择网卡驱动安装--如图-MutilBeast选择 Kext utility 只需要打开运行一下,等进程完毕,退出即可; 阅读全文
posted @ 2013-11-22 15:35 cocoajin 阅读(6757) 评论(0) 推荐(0) 编辑
摘要:在网上下载了一个pkg 的安装文件;在mac上安装一打就出现错误原因是,文件从网上直接下载的,会出权限问题,需要修复安装软件的安装权限;我的原因是,下载的是个rar的mac解压不了,就在线解压,得到了pkg 安装出错我最后是下载了一个mac下的rar解压软件http://www.pc6.com/softview/SoftView_53196.html参考:https://discussions.apple.com/thread/2628710 阅读全文
posted @ 2013-11-22 15:27 cocoajin 阅读(12539) 评论(0) 推荐(0) 编辑
摘要:APP注册APNS流程http://mobiforge.com/design-development/programming-apple-push-notification-services服务器端口推送库php https://github.com/sebastianborggrewe/PHP-Apple-Push-Notification-Serverjava https://github.com/notnoop/java-apns 阅读全文
posted @ 2013-11-19 16:44 cocoajin 阅读(256) 评论(0) 推荐(0) 编辑
摘要:忙活了一天,要把项目push到远程仓库保存;一直稳定的bitbucket今天突然push不成功了,出了503错误谷歌了各种原因,还以为是连接出了问题打开bitbucket State 页面之后,明白了http://status.bitbucket.org/ 唉,毕竟是免费的项目管理社区,希望问题早日解决! 阅读全文
posted @ 2013-11-15 17:31 cocoajin 阅读(1649) 评论(0) 推荐(0) 编辑
摘要:xcode5做了很大的更新,其中一点非常实用的功能是集成了Source control项目管理,而且和git做了完美的结合;非常实用;使用:在新建项目时,选择 下面的 Create a git repository on MAC打开项目--导航条---Source Control 这里面我们可以看到比较熟悉的一些命令了,commit,pull,push等打开---Source Control--下面的history我们就可以看到所有的提交了对项目做添加,修改,删除,操作之后,会在相应的文件上,显示 A,M,D 可以非常直观的看到当前的操作;提交版本,分支,返回旧版本等操作以及对比不同版本的代码 阅读全文
posted @ 2013-11-14 10:23 cocoajin 阅读(2565) 评论(0) 推荐(0) 编辑
摘要:应用CLLocationManager 的两个方法[CLLocationManagerlocationServicesEnabled] 判断设备是否开启定位功能[CLLocationManagerauthorizationStatus] 判断设备是否允许本程序的定位服务- (BOOL)isOnLocation{ BOOL isOn = false; if (([CLLocationManager locationServicesEnabled]) && ([CLLocationManager authorizationStatus] == kCLAuthorizationSta 阅读全文
posted @ 2013-11-13 09:51 cocoajin 阅读(486) 评论(0) 推荐(0) 编辑
摘要:添加高德地图的一个错误has been modified since the precompiled header解决方案:xcode---product----clean 清理重新编译一下就可以了参考:http://stackoverflow.com/questions/14793329/fixing-file-project-pch-has-been-modified-since-the-precompiled-header-was-bui 阅读全文
posted @ 2013-11-12 16:05 cocoajin 阅读(195) 评论(0) 推荐(0) 编辑
摘要:一:所需类库 iOS-QR-Code-Encoder 官网主页:https://github.com/moqod/iOS-QR-Code-Encoder 导入:QuartzCore.framework二:使用流程导入libqrencode文件夹里的所有文件在使用的地方 导入#import "qrencode.h"添加如下生成代码://生成二维码:- (UIImage *)qrImageForString:(NSString *)string imageSize:(CGFloat)size { if (![string length]) { return nil; ... 阅读全文
posted @ 2013-11-11 15:50 cocoajin 阅读(2309) 评论(0) 推荐(0) 编辑
摘要:#pragma mark ------------ searchBar 代理方法 --------------------------- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText{ /**< 模糊查找*/ NSPredicate *predicateString = [NSPredicate predicateWithFormat:@"%K contains[cd] %@", @"name", searchText]; self.sea 阅读全文
posted @ 2013-11-11 14:23 cocoajin 阅读(967) 评论(0) 推荐(0) 编辑
摘要:在iOS7 下测试了一些方法,发现还是攺变不了文本的居左,最后发现了一个nb的招; _searchBar = [[UISearchBar alloc]initWithFrame:CGRectZero]; if (kiOS7) { _searchBar.placeholder = @"请输入您所在的城市 "; } else { _searchBar.placeholder = @"请输入您所在的城市"; }看到上面的ios7下配置没,后面加了一堆的空格!哈哈http:/... 阅读全文
posted @ 2013-11-07 17:02 cocoajin 阅读(2470) 评论(0) 推荐(0) 编辑
摘要:主要是在 UISearchDisplayDelegate中更改;- (void)searchDisplayControllerWillBeginSearch:(UISearchDisplayController *)controller{ [_searchBar setShowsCancelButton:YES animated:NO]; if (kiOS7) { for (UIView *subView in [[_searchBar.subviews objectAtIndex:0] subviews]){ if([subView isKin... 阅读全文
posted @ 2013-11-07 16:00 cocoajin 阅读(1576) 评论(0) 推荐(0) 编辑
摘要:UISlider 设置增量 UISlider *slier = [[UISlider alloc]initWithFrame:CGRectMake(wu500.right, 0, 210, 50)]; slier.minimumValue = 500; slier.maximumValue = 4000; slier.thumbTintColor = [UIColor redColor]; [self.view addSubview:slier]; [slier addTarget:self action:@selector(sliderValueChang... 阅读全文
posted @ 2013-11-07 11:02 cocoajin 阅读(364) 评论(0) 推荐(0) 编辑
摘要:json数据非常友好方便的处理;推荐一个在线json数据格式化网站http://json.parser.online.fr/ 阅读全文
posted @ 2013-11-01 16:51 cocoajin 阅读(532) 评论(0) 推荐(0) 编辑
摘要:在ARC下使用[theTarget performSelector:theTarget withObject:Nil];会出现警告:performselector-may-cause-a-leak-because-its-selector-is-unknown解决方法:1:添加如下宏#define SuppressPerformSelectorLeakWarning(Stuff) \do { \_Pragma("clang diagnostic push") \_Pragma("clang diagnostic ignored \"-Warc-perfo 阅读全文
posted @ 2013-11-01 15:18 cocoajin 阅读(506) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示