dimanche 10 mai 2015

iOS AutoLayouts, wrong UIView frame

I have an xib file and I want my green UIView to change its height according to Device, but whenever I want to get it height with methods

[self.tablePlaceView frame]; [self.tablePlaceView bounds];

it returns {{0, 0}, {320, 568}} on all Devices, but on previews and device it does everything right.

http://ift.tt/1AONzav

Aucun commentaire:

Enregistrer un commentaire