Ios 如何在另一个类中调用方法?
我想只有一个类来控制我的菜单。 我试着用这个: 在Ios 如何在另一个类中调用方法?,ios,iphone,user-controls,appdelegate,Ios,Iphone,User Controls,Appdelegate,我想只有一个类来控制我的菜单。 我试着用这个: 在 #define Generic ((AppDelegate*)[[UIApplication sharedApplication] delegate]) #import <UIKit/UIKit.h> @interface Generic : UIViewController - (IBAction)photo:(id)sender; @property (nonatomic, strong) NSString *a
#define Generic ((AppDelegate*)[[UIApplication sharedApplication] delegate])
#import <UIKit/UIKit.h>
@interface Generic : UIViewController
- (IBAction)photo:(id)sender;
@property (nonatomic, strong) NSString *apareceMenu;
@end
现在我需要读另一节课上的-(iAction)照片,但我不知道怎么读
我相信这是件好事
[Generic photo];
有人能帮我吗?按照这篇文章中的说明操作:
如何在另一个(iOS)类中从一个类调用方法请按照本文中的说明进行操作:
如何在另一个(iOS)类中从一个类调用方法请按照本文中的说明进行操作:
如何在另一个(iOS)类中从一个类调用方法请按照本文中的说明进行操作:
如何在另一个(iOS)类中从一个类调用方法[Generic photo:]是调用函数的正确方法。在开始之前,必须在另一个类中执行此步骤
Generic *genericObj = [[Generic alloc]initWithNibName:@"Generic" bundle:nil];
然后你给你的班级打电话
[通用北京照片] [Generic photo:]是调用函数的正确方法。在开始之前,必须在另一个类中执行此步骤
Generic *genericObj = [[Generic alloc]initWithNibName:@"Generic" bundle:nil];
然后你给你的班级打电话
[通用北京照片] [Generic photo:]是调用函数的正确方法。在开始之前,必须在另一个类中执行此步骤
Generic *genericObj = [[Generic alloc]initWithNibName:@"Generic" bundle:nil];
然后你给你的班级打电话
[通用北京照片] [Generic photo:]是调用函数的正确方法。在开始之前,必须在另一个类中执行此步骤
Generic *genericObj = [[Generic alloc]initWithNibName:@"Generic" bundle:nil];
然后你给你的班级打电话
[通用北京照片] 为泛型类创建对象并通过该对象调用photo
[通用北京照片] 为泛型类创建对象并通过该对象调用photo
[通用北京照片] 为泛型类创建对象并通过该对象调用photo
[通用北京照片] 为泛型类创建对象并通过该对象调用photo [通用北京照片]