hi all,
I created a method that creates button
How do I connect the "vitual unInterFace Builder" Button(think NSbutton but not sure)to an IBaction?
I mean,I can't write in the .h -(IBaction) bla bla ; and then connect it visualy to the button,it's need to be via code but I don't know how to do it.
Thanks
I created a method that creates button
PHP:
CGRect buttonRect = CGRectMake(0, 0, 64, 64);
UIButton *HamburgerButton = [[UIButton buttonWithType:UIButtonTypeCustom] retain];
[HamburgerButton setFrame:buttonRect];
[HamburgerButton setTitle:@"" forState:UIControlStateNormal];;
UIImage *buttonImage = [UIImage imageNamed:@"Hamburger.png"];
[HamburgerButton setBackgroundImage:buttonImage forState:UIControlStateNormal];
forControlEvents:UIControlEventTouchUpInside];
HamburgerButton.center=CGPointMake(x1=25+arc4random()% 260, y1=79+arc4random()% 350);
[self addSubview:HamburgerButton];
[HamburgerButton release];
How do I connect the "vitual unInterFace Builder" Button(think NSbutton but not sure)to an IBaction?
I mean,I can't write in the .h -(IBaction) bla bla ; and then connect it visualy to the button,it's need to be via code but I don't know how to do it.
Thanks