ios
文章平均质量分 52
WillenWu
无........................
展开
-
ios学习笔记
ActionSheet: 头文件里加UIActionSheetDelegate>协议。 - (IBAction)buttonPressed:(id)sender { UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Are you原创 2013-03-30 19:49:09 · 899 阅读 · 0 评论 -
Objective-c调用c++文件
参考文章:http://www.cnblogs.com/cpcpc/archive/2012/08/21/2649264.html,但是发现同样的方法在xcode 4.6已经不行了,实例化对象时会报: “Receiver type for instance messages is a forward declaration”的错误。即使将"@class Hello;" 改为#import "He原创 2013-03-31 12:41:10 · 1235 阅读 · 0 评论 -
Objective-c利用协议实现回调函数
定义协议: #import @protocol myViewDelegate -(void) CallBackFun; @end 调用协议: #import #import "myViewDelegate.h" @interface Test : NSObject{ id delegate; } @property(nonatomic,retain)原创 2013-03-31 12:46:38 · 1619 阅读 · 0 评论