小女-IOS开发
文章平均质量分 59
miss_chalk
单细胞单线程妞
展开
-
利用block传值
#import #import "SecondViewController.h"@interface FirstViewController : UIViewController@property(strong,nonatomic) IBOutlet UILabel* label;-(IBAction)btn:(id)sender;@end#import "FirstViewC原创 2013-05-03 11:49:26 · 2920 阅读 · 0 评论 -
ios推送pem的生成
转载请标明出处欢迎交流[email protected]我是一个单线程妞~推送PEM的生成(代码为发布推送证书,开发推送证书同理)1.openssl x509 -in aps_production.cer -inform DER -out aps_production_identity.pem -outform PEM2.openssl pkcs12 -nocert原创 2014-03-11 11:47:31 · 2064 阅读 · 0 评论 -
ASIHttp无法联网,发不出请求
转载请标明出处欢迎交流[email protected]我是一个单线程妞~做某项目的时候,用了ASI,在模拟器和debug在真机调试的时候都没有问题,但是用release打包成ipa装在苹果设备的时候,却发现无法联网,状态栏的风火轮都不转。以为自己发布证书有问题,但是重新弄了发布证书还是无法联网,由于ipa无法调试,这个问题竟然琢磨了好几天,网上几乎没有这样的原创 2014-03-11 11:42:35 · 1614 阅读 · 0 评论 -
当我知道@class代替#import避免循环定义之后
转载请标明出处欢迎交流[email protected]我是一个单线程妞~很多刚开始学习iOS开发的同学可能在看别人的代码的时候会发现有部分#import操作写在m文件中,而h文件仅仅使用@class进行声明,不禁纳闷起来,为什么不直接把#import放到h文件中呢?这是因为h文件在修改后,所有import该h文件的所有文件必须重 新build,因此,如果原创 2013-09-26 10:42:40 · 1091 阅读 · 3 评论 -
objc_setAssociatedObject通过alert传值
转载请标明出处欢迎交流[email protected]我是一个单线程妞~ #import "ViewController.h"#import static char alertInfoKey;@interface ViewController ()@end@implementation ViewController- (void)原创 2013-09-17 15:10:54 · 5284 阅读 · 1 评论 -
GDataXMLNode解析xml文件
转载请标明出处欢迎交流[email protected]我是一个单线程妞~NSString* path = [[NSBundle mainBundle] pathForResource:@"StudentXML" ofType:@"xml"]; NSData* data = [[NSData alloc] ini原创 2013-09-15 13:53:52 · 1821 阅读 · 0 评论 -
键路径
转载请标明出处欢迎交流[email protected]我是一个单线程妞~ Person* p1 = [[Person alloc] initWithName:@"zhaojian" Age:20]; Person* p2 = [[Person alloc] initWithName:@"liruiqing" Age:原创 2013-09-12 14:22:25 · 1924 阅读 · 0 评论 -
归档 反归档
转载请标明出处欢迎交流[email protected]我是一个单线程妞~ // 归档,反归档 NSMutableString * str1 = [[NSMutableString alloc] initWithFormat:@"str1"]; NSMutableString * str2 = [[NSMutable原创 2013-09-12 11:37:48 · 1714 阅读 · 0 评论 -
oc 字符串 数组 字典 存到文件中
转载请标明出处欢迎交流[email protected]我是一个单线程妞~#import void readAndWriteNSString(){ NSFileManager* fileM = [NSFileManager defaultManager]; NSData* data = [[NSData alloc] init];原创 2013-09-13 11:54:35 · 3546 阅读 · 0 评论 -
~AssertMacros: queueEntry, file: /SourceCache/IOKitUser_Sim/IOKitUser-920.1.11/hid.subproj/IOHIDEven
xcode5 ios7beta产生如下log:~AssertMacros: queueEntry, file: /SourceCache/IOKitUser_Sim/IOKitUser-920.1.11/hid.subproj/IOHIDEven虽然程序能运行,但是看起来很不爽~ 解决方案如下:xcode5 ios7出现的问题,只需在main里面改成下面的代码~~////原创 2013-09-04 11:22:59 · 1887 阅读 · 0 评论 -
ios 修改应用名称
目标:把应用名为chris改为chalk. 建个ios工程,名为chris.在build setting下搜索product name,把名字改为chalk在plist下修改bundle display name为chalk 应用名已经改为chalk原创 2013-08-22 10:11:56 · 35715 阅读 · 0 评论 -
xcode安装phonegap日志
转载请标明出处欢迎交流[email protected]我是一个单线程妞~phonegap升级后,和以前有所不同,没有了pkg。1、解压phonegap-2.5到桌面。2、进入该目录(以下sinosoft为我用户名,用时改为自己的电脑的用户名) Sinosofts-Mac-mini:~ sinosoft$ cd DesktopSinos原创 2013-08-20 16:02:33 · 2827 阅读 · 0 评论 -
UIPageController
#import @interface ViewController : UIViewController @property(strong,nonatomic) UIScrollView* scrollview;@property(strong,nonatomic) UIView* view11;@property(strong,nonatomic) UIView* view22;原创 2013-07-05 17:27:28 · 1666 阅读 · 0 评论 -
在viewDidLoad里写tabbar
UITabBarController* tabbar = [[UITabBarController alloc] init]; tabbar.delegate = self; FirstViewController* first = [[FirstViewController alloc] init]; SecondViewControl原创 2013-05-17 11:45:38 · 1037 阅读 · 0 评论 -
IOS推送之PHP代码
转载请标明出处欢迎交流[email protected]我是一个单线程妞~在写推送的时候,PHP老是有问题,网上的代码几乎都是给一台设备推送,我推送多台的时候有的设备接收不到,后来琢磨了一周,总算有点结果。因为每次请教大牛的时候,很多大牛都会说,我只负责IOS客户端,不会PHP。汗死。PHP代码,里面查询数据库中device tok原创 2014-03-11 11:19:40 · 4686 阅读 · 4 评论