Object-C 空@selector
2015-09-20 16:22
489 查看
// 空@selector - (void) :(id)obj { NSLog(@"......."); } // 有一个参数名为空@selector - (void)firstSeg:(id)firstObj secSeg:(id)secObj :(id)thirdObj { NSLog(@"%s",__func__); } - (void)firstSeg:(id)firstObj secSeg:(id)secObj thirdSeg:(id)thirdObj { NSLog(@"%s",__func__); } - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self :nil]; [self firstSeg:@"1" secSeg:@"2" :@"3"]; [self firstSeg:@"1" secSeg:@"2" thirdSeg:@"3"]; }
结果
2015-09-20 15:28:55.106 JSStudy[2726:325573] ....... 2015-09-20 15:28:55.106 JSStudy[2726:325573] -[ViewController firstSeg:secSeg::] 2015-09-20 15:28:55.106 JSStudy[2726:325573] -[ViewController firstSeg:secSeg:thirdSeg:]
相关文章推荐
- ObjectAnimator详解(测试用,承接Android动画操作中的测试)
- 简要解析XMPP框架及iOS-Objective-C的使用
- 【IOS 开发学习总结-OC-8.2】★★ objective-c面向对象之——类和对象(下)
- NSCFArray insertObject:atIndex:]: mutating method sent to immutable obje的解决方法
- objective-c @protocol
- PyQT中多重继承,其中继承的父类有QObject或QObject的子孙类
- ORA-12545: Connect failed because target host or object does not exist
- JSON JsonArray和JsonObject学习资料
- Android 属性动画(二):ObjectAnimator与ValueAnimator
- objective-c category
- 自动释放池嵌套的简单图解
- Objective-C中的@property的retain写法的原理
- Entity FreamWork 无法创建“System.Object”类型的常量值。此上下文仅支持基元类型或枚举类型错误解决
- 在Win7 x64中使用GNUstep和MinGW编写Objective-C的代码
- 关于Objective-C的内存管理图解
- Object-C学习笔记
- 绑定数据 Repeater 与ObjectDataSource的用法
- 详解Objective-C的meta-class ,runtime创建类,添加实例变量
- CRecordsetBindObject优化
- windos8.1 GNUstep环境搭建,objective-c