iOS Question SizeToFit not working in Page_Resize

Pooya1

Active Member
Licensed User
I have label in layout and have 40 line text
I add this text runtime into scrollview
Example lbl1.Text = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa..."
After load layout,i try use SizeToFit for show actual size label
But after resize label via SizeToFit,it return to default position that i added in layout
Why?
 

Pooya1

Active Member
Licensed User
I solved it
I disable resize in layout properties and prevent resize label again
When we use page without load layout and add scrollview programming to page,Page_Resize raised completely and because after add scrollview and loadlayout into scrollview,also page_resize raised again
 
Last edited:
Upvote 0
Top