xamarin.ios - Modify the Frame of UIButton -


I am trying to resize a UIButton referenced from the xib file.

This is what I have tried without success:

  RectangleF frames = actionBtn.Frame; Frame With = 140; Action btn.fr = frames;  

What am I doing?

You can not modify an existing RectangleF instead try it

  RectangleF frame = actionBtn.Frame; Action BTN.frame = new rectangle (frame.x, frameY, 140, frame.height);  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -