Objective-C Primer(3)Multiple arguments for one method, synthesize and dynamic
- Author: 柳大·Poechant(钟超)
- Email: zhongchao.ustc#gmail.com (# -> @)
- Blog:Blog.CSDN.net/Poechant
- Date: May 7th, 2012
1 How to declare a method with multiple arguments?
#import "TestClass.h"
@implementation TestClass
-(void)privateMethod2: (int)inArg1 arg2:(int)inArg2
{
NSLog(@"private method 2");
}
-(void)someMethod;
{
NSLog(@"some method got called");
[self privateMethod1:1
arg2:2
arg3:3];
[self privateMethod2:1
arg2:2];
}
@end
2 How to invoke a method with multiple arguments?
It’s similar to declare the method. Do you remember…
-(void)privateMethod1: (int)inArg1
arg2: (int)inArg2
arg3: (int)inArg3
{
NSLog(@"private method 1");
}
3 What the difference between synthesize and dynamic?
synthesize
seems better thandynamic
because at this moment, you may think less is better. But your demands are not satisfied every time because of $.
-
转载请注明来自柳大的CSDN博客:Blog.CSDN.net/Poechant
-
分享到:
相关推荐
Learning Objective-C A Primer(中文版)
A primer for non-C programmers to get off the ground even faster What you'll learn * Learn Objective-C programming, the gateway to programming your iPhone, iPad or Mac * Write apps for the iOS and/or ...
MATLAB for Photomechanics- A Primer.zip.003
利用matlab对光学领域中的散斑图像进行分析的一本好书
3D数学基础 游戏开发 图形学 图形学入门比较好的教材,内容详细完整
MATLAB for Photomechanics- A Primer.zip.002
Command-Line Rust A Project-Based Primer for Writing Rust
Neural-Data-Science-A-Primer-with-MATLAB-and-Python-.pdf
3D Math Primer for Graphics and Game Development电子书的代码及问题答案。
MATLAB for Photomechanics- A Primer.zip.001
Data Mining: A Tutorial-Based Primer, Second Edition (Chapman & Hall/CRC Data Mining and Knowledge Discovery Series) by Richard J. Roiger 2016 | ISBN: 1498763979 | English | 529 pages | True PDF | 32 ...
Multipath Effects in GPS Receivers- A Primer PDF Multipath Effects in GPS Receivers- A Primer PDF
C-Primer-Plus中文版答案 官方课后答案
The Object Primer - Introduction to Techniques for Agile Modeling second edition
当前5G通信很热的一种物理层空口接入技术
vc编程系列之Addison Wesley - C++ Primer 3rd Ed
Systems Programming with Rust A Project-Based Primer
理解统计误差_生物学家入门 Marek Gierlinski, _Understanding Statistical Error_ A Primer for
A non-C programmer will find the code fragments and API descriptions mildly challenging, though possible to decipher, while the concepts should be clear. A technically minded nonprogrammer should be ...