UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom]; backButton.frame = CGRectMake(16, 40, 45, 45); [backButton addTarget:self action:@selector(splashBack:) forControlEvents:UIControlEventTouchUpInside]; [backButton setBackgroundImage:[UIImage imageNamed:@"返回"] forState:UIControlStateNormal]; [self.view addSubview:backButton];