自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Xcode 配置相关的错误集合(陆续更新)

1、"std::ios_base::Init::~Init()", referenced from出现这样的编译问题,是需要再加进libstdc++.dylib和libstdc++.6.dylib(为6.1使用,xcode5以后默认complier也可以编译通过)2、apple Mach-o Linker error通常是因为compile source中有相同的.m文

2015-02-11 14:23:12 722

原创 xcode6 使用using objc_msgSend方法后抛出Too many arguments to function call, expected 0, have *的错误

in xcode6 gold master, using objc_msgSend now throws a syntax error saying the number of arguments is wrong

2014-11-04 17:18:28 789

原创 URL中含有汉字怎么办

urlhan'ziios中http请求遇到汉字的时候,需要转化成UTF-8,用到的方法是:NSString * encodingString = [urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];url汉字解码请求后,返回的数据,如何显示的是这样的格式:%3A%2

2014-07-30 19:59:52 753

原创 IGCD,NSThread,NSOperation

苹果公司的Cocoa框架共支持三种多线程机制,分别为NSThread、GCD(Grand Central Dispatch)、Cocoa NSOperatio。NSThree是官方推荐的线程处理方式,它在处理机制上,需要开发者负责手动管理Thread的生命周期,包括子线程与主线程之间的同步等。线程共享同一应用程序的部分内存空间,它们拥有对数据相同的访问权限。你得协调多个线程 对同一数据的访问,一般

2014-07-29 15:42:19 442

原创 如何捕获系统外异常

有时应用崩溃,而日志中的输出信息太少,无法定位问题,这是最头疼的事情,尤其很累的时侯,已经想不起来刚才改过什么了,这就叫做无耐。工欲善其事,必先利其器,下面的方法可以给多些信息,让你看到堆栈执行顺序,在哪里崩溃的,也就能大概给个思路,确定问题的症结。在 AppDelegate.m 类实现之前加入:123456

2014-07-29 15:31:47 365

原创 Extern和Static的区别

Extern在SplashViewController.m中定义一个变量是这样的#import "SplashViewController.h"NSString* meString=@"123";@implementation SplashViewController// NSString* meString=@"123";

2014-07-29 15:14:38 358

原创 让程序进入后台后能长久运行代码

@property(assign,nonatomic)UIBackgroundTaskIdentifier backgroundUpdateTask;// AppDelegate.m文件-(void)applicationDidEnterBackground:(UIApplication*)application{  [self

2014-07-29 10:57:14 583

原创 如何修改UIButton的字体大小和颜色

UIButton *startButton=[UIButtonbuttonWithType:UIButtonTypeCustom];    [startButton addTarget:selfaction:@selector(startAnimation:)forControlEvents:UIControlEventTouchUpInside];    startButto

2014-06-12 11:03:47 614

空空如也

空空如也

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

TA关注的人

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