2
如何製作infobutton毗連?如何製作InfoButton毗連
UIButton *button = [UIButton buttonWithType:UIButtonTypeInfoLight];
UIBarButtonItem *infoItem = [[UIBarButtonItem alloc] initWithCustomView:button];
[button addTarget:self action:@selector(infoPressed:) forControlEvents:UIControlEventTouchUpInside];
我已經試過
infoItem.style = UIBarButtonItemStyleBordered;
以及
button.style = UIBarButtonItemStyleBordered;
但他們沒有工作。將感謝幫助。