自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

转载 iOS 6.0下 FFMPEG真机编译

make clean ./configure --cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --as='gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Plat...

2013-02-02 22:16:00 196

转载 apns推送获得特定的内容

1:如果程序没有启动,在这里获得- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions{NSDictionary*apsDict = [[launchOptionsobjectForKey:@"UIApplicationLa...

2012-08-16 10:17:00 136

转载 快速排序(Object-c)

+(NSMutableArray*)kuaisuMethodTest:(NSMutableArray*)dataArraylow:(int)lowIndexhigh:(int)highIndex{ //NSMutableArray*data=[[NSMutableArrayalloc]initWithObjects:@"5",@"4",@...

2012-08-13 18:28:00 145

转载 SFHFKeychainUtils 存储信息

苹果SDK自带的就有密码保护,使用方法很简单,如下: 1、引入Security.frameWork框架。 2、引入头文件:SFHKeychainUtils.h. 3、存密码: [SFHFKeychainUtilsstoreUsername:@"dd"andPassword:@"aa"forServiceName:SERVICE_NAMEupdateExisting:1e...

2012-08-13 10:34:00 145

转载 iOS判断NSString的length

1 //方法一: 2 - (NSUInteger)wordCount:(NSString *)str { 3 NSUInteger words = 0; 4 NSScanner *scanner = [NSScanner scannerWithString: str]; 5 6 // Look for spaces, tabs and newli...

2012-08-10 17:19:00 160

转载 iPhone判断手机号码

1 +(BOOL)CheckPhoneNumInput:(NSString *)_text{ 2 NSString *Regex =@"(13[0-9]|14[57]|15[012356789]|18[02356789])\\d{8}"; 3 NSPredicate *mobileTest = [NSPredicate predicateWithFormat:@"...

2012-08-10 17:14:00 137

转载 关闭UITextField键盘

一个view上有好多输入框, 只需调用: [self.view endEditing:YES]; 转载于:https://www.cnblogs.com/guangzhi405/archive/2012/08/10/2632228.html

2012-08-10 17:12:00 92

转载 发布APP时去除NSLog打印

#ifdef __OPTIMIZE__ #define NSLog(...) #endif 注:以上代码需要修改发布模式为Release, (以Xcode4.2为例 做法如) Edit Scheme> Run xxx(程序名) > Destination 改成你要发布的iOS Device 或 模拟器 >info 选项卡 > bu...

2012-08-10 17:06:00 126

转载 format string is not a string literal potentially

1 //在xcode45-DP2下使用 2 [NSString stringWithFormat:@""]; 3 //会有这个警告 4 //format string is not a string literal (potentially insecure) 5 //加个nil既可解决 6 [NSString strin...

2012-08-10 17:02:00 383

转载 NSUserDefaults 保存对象

1 //保存: 2 NSMutableArray* array = [[NSMutableArray alloc] init]; 3 for(int i=0; i<3; i++){ 4 MyObject *testObj = [[MyObject alloc] init]; 5 testO...

2012-08-10 16:28:00 150

空空如也

空空如也

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

TA关注的人

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