I need to get the IBOutlet UIImageView size created in Interface Builder.
But if I read IBOutlet UIIMageView.image.size.width or .height in viewDidLoad, viewWillAppear or viewDidAppear mode, I always get 0 !!!
Where (what method) and how (maybe another variable?) Can I get this information?
thanks for the help
does
UIImageView *iv; width = iv.frame.size.width;
work better? Instead of the image, get the size of the UIImageView.
You will get a size value if the "Use autorun" checkbox in the file inspector is not selected
Source: https://habr.com/ru/post/1730609/More articles:How to replace strings not in link tag? - stringIs there a constant that describes the minimum value of a Windows FileTime file in .NET? - datetimehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1730606/multiplying-a-subset-of-a-list-of-integers-together-in-python&usg=ALkJrhiZVCsbOGRlyokSaNK1s_ddU6EBnQUsing LINQ Contains Against SqlMethods.Like - vb.netС#/vb.net тип несоответствия при поиске конструктора путем отражения (Integer() vs System.Int32 []) - reflectionhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1730610/updating-the-repository-location-for-an-existing-svn-checkout&usg=ALkJrhg_nydPwp1Df27MtFOJtY-m83QwbQJava: Есть ли там какие-то инструменты, которые могут реорганизовать X [] [] в List>? - javaBizTalk - getting a port that reads twice from a DB - biztalkIs it possible to host a static html site in a Google application? - google-app-engineC # /. NET XML Serializer - using a property as an element name - c #All Articles