How to custmoize a UIview with two UIbutton where user can pass parameter to the customize class
- (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];
}
I can only customize the UIView! how to add the two UIButton to View.
When I allocate the UIView Custom Class it need to visible UIButtons too
You can create dynamic buttons using the following code
You can either use the insertSubview:atIndex method
Hope it helps you.