发布网友 发布时间:2022-05-07 21:11
共2个回答
热心网友 时间:2022-07-01 11:52
试试下面这段代码:UIImage *i=[UIImage imageNamed:@"search-25by25.png"]; UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom]; myButton.bounds = CGRectMake( 0, 0, i.size.width, i.size.height ); [myButton setImage:i forState:UIControlStateNormal]; [myButton addTarget:self action:@selector(SelectMission:) forControlEvents:UIControlEventTouchUpInside];热心网友 时间:2022-07-01 11:52
回复 yuanyuanliu 的帖子首先确定SelectMission这个方法存在且没有问题然后more还应该release.