上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 36 下一页
摘要: 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 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 忙活了一天,要把项目push到远程仓库保存;一直稳定的bitbucket今天突然push不成功了,出了503错误谷歌了各种原因,还以为是连接出了问题打开bitbucket State 页面之后,明白了http://status.bitbucket.org/ 唉,毕竟是免费的项目管理社区,希望问题早日解决! 阅读全文
posted @ 2013-11-15 17:31 cocoajin 阅读(1641) 评论(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 阅读(2554) 评论(0) 推荐(0) 编辑
摘要: 应用CLLocationManager 的两个方法[CLLocationManagerlocationServicesEnabled] 判断设备是否开启定位功能[CLLocationManagerauthorizationStatus] 判断设备是否允许本程序的定位服务- (BOOL)isOnLocation{ BOOL isOn = false; if (([CLLocationManager locationServicesEnabled]) && ([CLLocationManager authorizationStatus] == kCLAuthorizationSta 阅读全文
posted @ 2013-11-13 09:51 cocoajin 阅读(484) 评论(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 阅读(193) 评论(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 阅读(2283) 评论(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 阅读(963) 评论(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 阅读(2466) 评论(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 阅读(1572) 评论(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 阅读(360) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 36 下一页