自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

柯木琴子

希望的曙光

  • 博客(43)
  • 收藏
  • 关注

原创 技术学习网站和论坛

技术学习网站和论坛1.code4app :   http://code4app.qiniudn.com/2.cocoachina : http://www.cocoachina.com/3.简书IOS : http://www.jianshu.com/c/2ffaa203eb6a4. segmentfault : https://segmentfault.com/t/ios5.

2017-04-21 11:20:18 362

原创 ios encoding url

NSString *urlStr = @"交响音乐";//中文转unicodeurlStr = [urlStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];//unicode转中文urlStr = [urlStr stringByRemo

2017-03-28 12:01:37 255

原创 清除mac垃圾的路径

1.  /Users/用户名/Library/Developer/Xcode/DerivedData

2016-02-22 10:03:43 1001

原创 ios 将证书生成pem文件

进入终端,到证书目录下,运行以下命令将p12文件转换为pem证书文件:openssl pkcs12 -in MyApnsCert.p12 -out MyApnsCert.pem -nodes

2016-01-08 15:37:17 350

原创 查看iOS崩溃日志从 Mac OS X上

大部分用户可能都会使用iTunes软件来管理iPhone或者iPad设备,这时候同步的Crash日志就会同步到电脑上,我们只需要在特定的路径里面寻找即可。Mac OS X:~/Library/Logs/CrashReporter/MobileDeviceWindows XP:C:\Documents and Settings\Application Data\Apple c

2015-12-30 09:54:29 3118

原创 react native环境搭建for iOS

React Native iOS环境搭建前段时间React Native for Android发布,感觉React Native会越来越多的公司开始研究、使用。所以周六也抽空搭建了iOS的开发环境,以便以后利用空闲的时间能够学习一下。废话不多说了,下面简单的列出步骤吧。 1. 安装Homebrew Homebrew主要用于安装后面需要安装的watchman、flow 

2015-12-29 10:14:51 777

原创 git版本控制

一.git版本控制

2015-11-04 11:43:04 341

原创 SVN版本控制

用到的svn命令语句主要如下:打开命令终端 1.创建svn目录:  mkdir  svnroot     cd  svnroot     mkdir   repository     svnadmin create  /Users/yourmacname/Desktop/svnroot/repository/

2015-11-03 14:35:01 333

原创 ios获取设备唯一标志的解决方案

那么在开发中如何才能标识设备的唯一性呢?apple公司提供的方法是通过keychain来存一些标志信息,然后通过存的标志信息来让应用程序来识别该设备的唯一性。 apple公司写了一个简单的操作keychain的工具类:https://developer.apple.com/library/ios/samplecode/GenericKeychain/Listings/Classes_Key

2015-10-13 13:56:50 569

原创 iOS UIApplication功能十分强大的openURL方法

UIApplication *app = [UIApplication shareApplication];1>.打电话[app openURL:[NSURL URLWithString:@"tel://10086"]];2>.发短信 [app openURL:[NSURL URLWithString:@"sms://10086"]];3>.发邮件[app openURL:

2015-08-25 09:52:00 738

原创 iOS 添加粘贴板的功能(复制功能)

1.   UIPasteboard *board = [UIPasteboardgeneralPasteboard];    board.string =@" 需要粘贴的问题字符串";

2015-08-24 17:54:12 1362

原创 iOS动画原理

一、UIView自带动画(UIKit框架中)        只有当UIView的以下属性改变时才能产生动画效果,且这些动画效果都是平面性的(二维的),基于手机屏幕的平面,主要有“平移(位置改变,沿x轴、Y轴或同时改变)”、“缩放(view大小改变,宽高)”、“旋转(只有沿Z轴,即垂直于屏幕的轴,旋转平行于屏幕)”、“背景色的改变”、“透明度”:        (1)Translat

2015-08-24 15:45:07 712

原创 iOS添加非自带字体库

当iOS自带的字体满足不了自己的项目需求时,需要应用其他的字体时,需要下载其他的字体库来ttf文件,下面介绍步骤:一.下载字体库 ttf文件导入项目中;              二.在Info.plist文件里添加Add Row->Fonts provided by application,然后将上面那些ttf文件都添加进来:          三.在项目中测试看有没有添

2015-08-19 14:10:02 382

原创 获取xcode version和build

1.获取xcode version和buildNSDictionary *infoDic = [[NSBundlemainBundle] infoDictionary];NSString *version =  [infoDicvalueForKey:@"CFBundleShortVersionString"];NSString *build = [infoDic valu

2015-07-10 15:40:15 721

原创 swift单例

单例var c =0class Sigton {    static var share :Sigton {       struct Static {          static let b =c++          static let sigton =Sigton()        }       println("b

2015-07-10 15:35:28 359

原创 swift 的宏定义

swift中没有了#Define这种宏定义了,可以用let来声明常量来取代,判断当前系统版本let IS_IOS7 = (UIDevice.currentDevice().systemVersion as NSString).doubleValue >= 7.0 let IS_IOS8 = (UIDevice.currentDevice().systemVersion as NSStrin

2015-07-07 11:28:57 520

原创 版本更新

-(void)checkUpdate{    NSDictionary *infoDic = [[NSBundlemainBundle] infoDictionary];    //CFShow((__bridge CFTypeRef)(infoDic));    NSString *currentVersion = [infoDicobjectForKey:@"CFBundl

2015-05-04 11:18:46 370

原创 ios 提交appstore报错 缺图片问题

一报错 :  missing required icon file,the boundle does not contain an app icon for iPhone/iPod Touch of exactly '57*57' pixels, in .png format  for iOS versions   --需要提供57*57的图片 命名Icon.png info.plist->a

2015-04-13 11:04:50 346

原创 ios UILabel设置行间距

_contentLabel 为uilabel         NSMutableAttributedString *attributedString = [[NSMutableAttributedStringalloc] initWithString:_contentLabel.text];  NSMutableParagraphStyle *paragraphString = [[N

2015-03-25 13:03:11 551

原创 计算iOS Xcode总代码行数

一.打开终端,cd 进入你要统计的文件夹下面二.输入如下命令:           find . -name "*m" -or -name "*.h"  -or -name ".c" |xargs grep -v "^$"|wc -l     上面是统计.h .m文件去除多余空行的行数        find . -name "*.m" -or -name "*.h" -or -n

2015-03-12 17:21:34 442

原创 xcode6添加pch文件

1.创建一个pch文件;2.在工程搜索框中输入prefix ,然后在prefix header中输入${SRCROOT}/pch/上面创建的pch文件名,最后enter即可

2014-12-26 10:27:24 420

原创 Xcode 快捷键

1. 常用xcode快捷方式(1). 文件CMD + N: 新文件CMD + SHIFT + N: 新项目CMD + O: 打开CMD + S: 保存CMD + SHIFT + S: 另存为CMD + W: 关闭窗口CMD + SHIFT + W: 关闭文件(2). 编辑CMD + [: 左缩进CMD + ]: 右缩进CMD +

2014-12-23 13:29:29 562

原创 如何让自己的app store上面的应用快速审核方法

1.https://developer.apple.com/appstore/contact/?topic=expediteti

2014-09-29 15:11:14 608

原创 删除Xcode中多余的证书provisioning profile

手动删除xcode5 provisioning profile path: ~/Library/MobileDevice/Provisioning Profiles

2014-09-17 12:37:19 575

原创 JPush极光推送 and 百度云推送

这两天在研究极光推送,极光推送

2014-09-15 21:43:20 2414 1

原创 静态库.a合并 和 .a文件上传到svn

在项目中有些文件会有一些静态库文件

2014-08-13 09:51:33 655

原创 ios 在xcode 5.0以上(做iOS7的项目)怎么设置取消iOS6的Icon半月阴影效果

ios 但我们在做xiang mu

2014-08-07 11:33:14 832

原创 iOS 生成开发(真机测试)证书 发布证书 账号登录

http://my.oschina.net/joanfen/blog/133624

2014-07-21 10:02:55 441

原创 iOS7.1企业级证书 http服务访问无效 解决

iOS7.1企业级证书 http服务访问无效z

2014-07-21 09:40:59 761

原创 iOS适配问题

1.对于iOS适配问题      对于现在来说,主要是针对iOS7xi

2014-07-17 10:30:27 457

原创 ios项目有关的系统 uuid,系统版本号,手机型号,获取当前时间……

1.获取系统当前时间

2014-07-16 16:26:32 865

原创 ios App store版本更新

1.对于在app store上面的版本更新//NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary];    NSString *currentVersion = [infoDic objectForKey:@"CFBundleVersion"];    NSLog(@"currentVersion = %@

2014-07-10 22:06:37 663

原创 button按钮的tittle 折行且居中显示

UIButton *button = [UIButtonbuttonWithType:UIButtonTypeRoundedRect];button.frame =CGRectMake(40,100, 200, 100);    button.titleLabel.numberOfLines =2;    button.titleLabel.textAlig

2014-05-29 09:48:52 1445

原创 iOS 修改系统亮度

i  [[UIScreenmainScreen] setBrightness:value];

2014-05-20 17:25:51 712

原创 xx duplicate symbols for architecture i386的问题

问题:symbols for architecture i386" title="[转载]duplicate symbols for architecture i386" style="margin:0px; padding:0px; border:0px; list-style:none">解决方法:You've included  "filexxx" in your pro

2014-05-09 13:25:34 594

原创 iOS 有用网址

核心动画编程指南【Core Animation Programming Guide】下载地址:http://www.cocoachina.com/bbs/read.php?tid=84461&fpage=3多线程编程指南【Threading Programming Guide】下载地址:http://www.cocoachina.com/bbs/read.php?t

2014-04-25 10:34:39 518

原创 iOS评论页面 iOS7代码更新

NSString *urlStr = nil;    if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) {        urlStr = [NSStringstringWithFormat:@"itms-apps://itunes.apple.com/app/id%d&mt=8",522322732];    }else

2014-04-24 15:48:14 607

原创 iOS 单例写法

1.基于gcd的写法

2014-04-18 15:39:45 738

原创 iOS 基于UIView抖动 来回移动 缩放 翻转效果

1.来回转动 抖动效果

2014-04-17 16:58:12 2805

原创 CATransition type类型

CATransition *animation = [CATransitionanimation];animation.duration =1.0;animation.type =@"cube";animation.subtype =kCATransitionFromRight;

2014-04-17 15:21:32 835

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除