//
// TestClass.m
// ObjectiveCTest
//
// Created by 超 钟 on 12-5-6.
// Copyright (c) 2012年 http://blog.csdn.net/poechant. All rights reserved.
//
#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
It’s similar to declare the method. Do you remember…
-(void)privateMethod1: (int)inArg1
arg2: (int)inArg2
arg3: (int)inArg3
{
NSLog(@"private method 1");
}
synthesize
seems better than dynamic
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
-