Start a new topic

Failing to add custom button over archview

Failing to add custom button over archview



I am trying to add button dynamically on top of archview. I am designing app for iOS platform. 

Code snipplet is below:

        let mail  = UIButton(type: .System)

        mail.frame = CGRectMake(10,10, 200, 200);

        mail.setTitle("Button", forState: .Normal)

        mail.setTitleColor(UIColor.blackColor(), forState: .Normal)




After running though its not throwing any error, but I am not able to see any button on top of webview loaded by archview.


Please help!!




Hi Yash,
Did you try to use Xcode visual debug tools to verify where your button is in the view hierarchy? Have you considered using auto layout?
Because our SDK view is a standard UIView subclass, you can add any other UIView (like UIButton) subclass on top of it.

Best regards

Login or Signup to post a comment