new to iOS - not able to pass parameter to method
*strong text*here is my .h file:
@interface test1ViewController : UIViewController{}
-(void)function1:(NSString *)param1:(NSString *)param2 ;
@end
Here is my .m file:
- (void)viewDidLoad{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[self function1:@"333" param2:@"sadfas"];
}
-(void)function1:(NSString *)param1:(NSString *)param2 { }
[self function1:@"333" param2:@"sadfas" ]; <-- this line of code gives me
an error, stating: no visible @interface .... delcares the selector
'function1:param2;
I tried to modify this a bit, but could not get it to work.. can you help
me ?
No comments:
Post a Comment