如何UIview
用两个自定义一个UIbutton
用户可以将参数传递给自定义类的地方
- (void)viewDidLoad
{
[super viewDidLoad];
[self.view setBackgroundColor:[UIColor whiteColor]];
CanvasView *newCanvas = [[CanvasView alloc] initWithFrame:CGRectMake(0.0, 164.0, self.view.frame.size.width, self.view.frame.size.height-350)];
self.canvas = newCanvas;
[self.view addSubview:canvas];
}
我只能自定义UIView
!如何将两者添加UIButton
到视图中。
当我分配自定义类时,它也UIView
需要可见UIButtons