iOS Question Rounded Corners in Labels created in Designer not working

cooperlegend

Active Member
Licensed User
Longtime User
Hi, This has been a problem since iOS 9 onwards. All labels created within the Designer and set to have rounded corners are not working correctly.

I have uploaded a sample project to demonstrate this issue.

Buttons work fine (see project)
Labels return to square corners.

Labels created manually within the project also work correctly (but I would prefer to use the designer and not have to re-write my existing projects)

Any ideas?
 

Attachments

  • Test1.zip
    68.7 KB · Views: 206

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. Application_Start will only be called once, so you don't need to check whether the page is initialized or not.
2. It is a mistake to remove the views and load the layout again in Page_Resize event.

I've tested your code after removing the call from Page1_Resize and the label is rounded:

upload_2015-11-18_16-46-31.png


Note that you can always put a panel behind the label.
 
Upvote 0

cooperlegend

Active Member
Licensed User
Longtime User
Thanks Erel,

I will try this in a bit.

I think though that I have to reload the design when the device is rotated as I use fixed views for each orientation (for another reason)
 
Upvote 0

cooperlegend

Active Member
Licensed User
Longtime User
Hi Erel, I'm struggling to connect currently so not able to compile to see if this works. BUT...

Even though I have changed the code, I still see square corners in the designer (on the device), why is this?
 
Upvote 0

cooperlegend

Active Member
Licensed User
Longtime User
Thanks Erel,

Quick update for the benefit of others as well

Things I had to change were..

1) Removed the logic to re-load the layout(s).
2) Changed the layout designs to handle resize events.
3) Removed the loading of multiple layouts, changed to load layouts as and when required as separate pages.
 
Upvote 0
Top