ios wcf接口怎么调用 怎么传参数

2025-05-14 15:23:13
推荐回答(1个)
回答1:

你在类中定义一个方法- (void)buttonPressed; 在该类的对象中,使用[self buttonPressed]即可直接调用; 也可以使用selector,下面这个例子是button点击时调用的例子: [button1 addTarget:self action:@selector(buttonPressed:) forControlEvents:...