ex:
UIButton *backButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
backButton.frame = CGRectMake(380, 260, 80, 30);
[backButton setTitle:@"Back" forState:UIControlStateNormal];
[backButton addTarget:self action:@selector(backButtonClicked:)
forControlEvents:UIControlEventTouchUpInside];
沒有留言:
張貼留言