- 博客(111)
- 资源 (9)
- 收藏
- 关注
转载 把已经存在的项目上传到github
把已经存在的项目上传到github步骤如下:在github上新建一个空的项目,不需要ignore和readme文件把项目地址放到xcode > preferences > accounts里面cd进入本地项目,执行以下步骤就可以把项目上传到github上啦git initgit add .git commit -m "first commit"
2016-09-09 13:02:19
2032
原创 git clone 之后文件夹是空的,处理方法
git操作创建本地分支:git branch -agit checkout -b develop mastergit branchgit statusgit pullgit branch --set-upstream-to=origin/develop developgit pullgit branch -a
2016-03-18 09:09:22
23248
转载 iOS 解决页面按钮同时点击,同时触发问题 设置所有UIButton的ExclusiveTouch属性为YES
解决页面按钮同时点击,同时触发问题:-(void)setExclusiveTouchForButtons:(UIView *)myView{ for (UIView * v in [myView subviews]) { if([v isKindOfClass:[UIButton class]]) [((UIButton *)v)
2016-02-17 12:48:15
1889
原创 新建项目添加到git上步骤
1、在git网站上创建项目git库2、本地创建项目文件3、命令行:切换到本地项目文件夹下cd MySecondDemo/4、命令行:初始化gityuanzhiying:MySecondDemo yuanzhiying$ git initInitialized empty Git repository in /Use
2015-12-14 00:20:29
13989
原创 mac 显示隐藏 隐藏文件的命令
显示:defaults write com.apple.finder AppleShowAllFiles -bool true隐藏:defaults write com.apple.finder AppleShowAllFiles -bool false
2015-12-13 21:50:40
530
原创 几个私有代码库托管网站
http://git.oschina.net/https://coding.net/user/https://code.youkuaiyun.com/
2015-12-13 21:43:39
2073
原创 iOS单个页面关闭边缘返回
// 禁用 iOS7 返回手势 if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) { self.navigationController.interactivePopGestureRecognizer.enabled = NO;
2015-11-27 19:14:56
2894
转载 git提交代码错误,恢复远程代码库到没有错误的提交版本
假设你有3个commit如下:commit 3commit 2commit 1其中最后一次提交commit 3是错误的,那么可以执行:git reset --hard HEAD~1你会发现,HEAD is now at commit 2。然后再使用git push --force将本次变更强行推送至服务器。这样在服务器上的最后一次错误提交也彻底消
2015-11-17 23:43:29
2057
转载 iOS app更新数据库数据迁移问题
iOS App初始化或者升级,涉及本地数据库迁移的问题http://www.bubuko.com/infodetail-312724.htmlhttp://www.cocoachina.com/bbs/read.php?tid=221253App版本更新时对SQLite数据库表的修改问题http://www.ithao123.cn/content-8691653.htm
2015-11-09 11:54:39
4110
原创 项目安装CocoaPods
1、移除原有镜像源$ gem sources --remove https://rubygems.org/2、使用淘宝的Ruby镜像来访问cocoapods,注意这里为https$ gem sources -a https://ruby.taobao.org/3、查看是否更换镜像成功$ gem sources -l
2015-11-04 19:01:32
753
转载 ios程序后台运行时,当有消息推送过来,如何修改程序角标上是数字
这个得在发消息的服务器中给你累加,客户端只是被动的显示applicationIconBadgeNumber值。当客户端收到推送消息时要告诉服务器端,服务器将applicationIconBadgeNumber置为0,当在后台或未开启时,不能告诉服务器端,服务器每发一条,就会将applicationIconBadgeNumber值累加,就将显示在图标的右上角。
2015-10-06 16:01:54
5201
转载 iOS 获取设备唯一标示
http://blog.163.com/l1_jun/blog/static/1438638820155108054177/原文链接:http://tinymission.com/post/ios-identifierforvendor-frequently-changingWhen Apple got rid of access to the UDID for dev
2015-08-06 11:28:59
5273
原创 Swift苹果官方在线文档地址
The Swift Programming Languagehttps://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/index.html#//apple_ref/doc/uid/TP40014097-CH3-ID0Using
2015-07-23 00:28:10
2441
转载 30多个iOS常用动画,带详细注释
http://blog.youkuaiyun.com/u011303663/article/details/46817057?ref=myread
2015-07-11 15:18:28
1027
原创 iOS Loading图多张png图片组合动画效果
集成方法:请求开始://显示loading [YXSpritesLoadingView showWithText:nil andShimmering:NO andBlurEffect:NO];请求结束://移除loading [YXSpritesLoadingView dismiss];效果图如下:
2015-07-11 14:21:55
4705
原创 iOS可续订订阅测试数据
可续订购买测试包月数据:第一次购买:2015-07-10 13:16:54.619 english_student[3157:588860] 验证完后的返回数据:messageDic:{ flag = 0; ispay = 1; money = 1485; payendtime = 20150710132145; userid = 1588;}2
2015-07-10 14:40:48
1348
原创 Apple IAP官方文档
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Introduction.html#//apple_ref/doc/uid/TP40008267-CH1-SW1
2015-07-03 10:51:47
4422
转载 iOS自动订阅商品(Auto-Renewable Subscriptions)相关处理
http://blog.youkuaiyun.com/xyxjn/article/details/17412453
2015-07-01 11:54:56
4065
转载 iOS 客户端rceipt验证代码
.h中: -(BOOL)putStringToItunes:(NSData*)iapData; .m中: #import "NSData+Base64.h" #import "NSString+SBJSON.h" #import "JSON.h" -(BOOL)putStringToItunes:(NSData*)iapData{//用户购成功的transaction
2015-07-01 11:20:52
633
转载 iOS IAP 自动更新的订阅服务
自动更新的订阅服务In-App Purchase提供了自动更新型订阅服务的标准方式。自动更新型订阅有如下新的显著特征:1. 当你在iTunes Connect中配置自动更新型订阅服务时,需要同时指定更新周期和其他的促销选项。2. 自动更新型订阅服务会被自动恢复(使用Store Kit中恢复非消费型商品一样的函数)。原始的交易信息会和更新的交易信息一起发送给你的程序。详情请查看“
2015-07-01 11:11:27
6748
转载 Mac系统之----教你怎么显示隐藏文件,或者关闭显示隐藏文件
缺省情况下,在 Mac 下是不显示隐藏文件的,Finder 也未提供设置是否显示隐藏文件的选项,不像 Windows 下,有一个“文件夹选项“设置界面里可以控制,但这并不表示 Mac 下无法显示隐藏文件,我可以通过“终端”,用命令行设置这个选项,命令如下:显示:defaults write com.apple.finder AppleShowAllFiles -bool tru
2015-06-30 13:01:48
50274
转载 iOS IAP恢复
//——2012-6-25日更新iap恢复看到很多童鞋说让Himi讲解如何恢复iap产品,其实博文已经给出了。这里再详细说下:首先向AppStore请求恢复交易:1[[SKPaymentQueue defaultQueue] restoreCompletedTransactions];然后当
2015-06-29 11:40:08
3182
转载 Xcode7问题
升级Xcode7之后遇到的问题:1、模拟器连不上自己服务器https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-DontLinkElementID_13在iOS9 bet
2015-06-26 17:18:27
4234
转载 iOS开发 简单实现视频音频的边下边播
http://blog.youkuaiyun.com/wxw55/article/details/17557295
2015-06-26 17:15:29
3193
原创 iOS IAP应用内购买汇总
详解iOS应用程序内使用IAP/StoreKit付费、沙盒(SandBox)测试、创建测试账号流程http://www.himigame.com/iphone-cocos2d/550.htmlIAP 计费被拒绝解决方案http://blog.youkuaiyun.com/kaitiren/article/details/9946255#t8关于IAP:苹果的审核规则发生了一点变化-
2015-06-26 17:06:57
1158
转载 关于IAP:苹果的审核规则发生了一点变化--没有“恢复”将会被拒
We found that while your app offers In-App Purchase(s) that can be restored, it does not include the required "Restore" feature to allow users to restore the previously purchased In-App Purchase(s), a
2015-06-26 14:03:39
2711
转载 OC提供的bolock遍历方法
//改变数组中赞data NSString *userName = [GLUserDataManager sharedInstance].user_info.name; NSInteger userID = [GLUserDataManager sharedInstance].user_id; NSString *tempGoodStr = [NSString string
2015-06-19 19:25:16
557
转载 UILabel字体描边
重写UILabel的drawTextInRect方法:- (void)drawTextInRect:(CGRect)rect { CGSize shadowOffset = self.shadowOffset; UIColor *textColor = self.textColor; CGContextRef c = UIGraphicsGetCur
2015-06-19 19:22:45
3113
windows环境下将socket发布加入服务中 srvany-instsrv
2014-04-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人