simply I am beginner in developing on ipad and I need to draw rectangle at point x,y with width and height when i clicked or touched button .
I searched on google but i didn’t find anything working in button handler
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create rectangleButton in viewDidLoad method and write
-(void)rectangleButtonSelectedmethod in your ViewController.m. And also create classRectangleViewof UIView.Implement
- (void)drawRect:(CGRect)rectmethod in RectanglerView.mI hope it will be helpful to you