UIButton *rightButton = [UIButton buttonWithType:UIButtonTypeCustom];

[rightButton setBackgroundImage:[UIImage imageNamed:@"bgbtn.png"] forState:UIControlStateNormal];

[rightButton setTitle:@"完成" forState:UIControlStateNormal];

[rightButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];

rightButton.titleLabel.font = [UIFont boldSystemFontOfSize:12];

rightButton.frame = CGRectMake(265, 6.0, 40.0, 30.0);

[rightButton addTarget:self action:@selector(GetCarLocation) forControlEvents:UIControlEventTouchUpInside];

相关文章:

  • 2022-12-23
  • 2021-07-07
  • 2021-11-09
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-02-28
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案