摘要:
//手工添加按钮以及为按钮添加addTarget目标动作关联开始 CGRect frame = CGRectMake(10.0f, 10.0f, 120.0f, 50.0f); UIButton *button = [UIButtonbuttonWithType:UIButtonTypeRoundedRect]; button.frame = frame; [button setTitle:@"title"forState:UIControlStateNormal]; button.backgroundColor = [UIColorclearColor]; button. 阅读全文