0
我已經編程式地在xcode中添加了按鈕,但是當我通過模擬器運行它時,它不會動畫,即它不像通常那樣閃爍?當按下按鈕時不動畫iOS
這是怎麼了,我增加了一個按鈕:
closeButton = [[UIButton alloc] init];
closeButton.frame = CGRectMake(505, 5, 20, 20);
[closeButton setImage:imgBtn forState:UIControlStateNormal];
[closeButton setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
[closeButton addTarget:self action:@selector(closeButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:closeButton];
三江源非常 –
歡迎亞當Altinkaya – Sport