[Solved] Styling a button that was created in interface builder

This is actually really easy. You just have to create a @property and connect the button you want to style by control dragging from the button to the newly created property. The property should look something like this: @property (nonatomic, strong) IBOutlet UIButton *registerButton; Then in the viewDidLoad, you put the above code that targets … Read more

[Solved] How to push or present UIViewcontroller or storyboard from UIView subclass?

You need to implement protocol method for custom UIView class. For example; #import <UIKit/UIKit.h> @protocol YourCustomViewDelegate <NSObject> – (void)buttonTapped; @end @interface YourCustomView : UIView @property (nonatomic, strong) id< YourCustomViewDelegate > delegate; @end And the .m file you can call buttonTapped delegate method. – (void)myCustomClassButtonTapped:(id)sender { [self.delegate buttonTapped]; } For proper work; set your custom view … Read more