Wednesday, July 15, 2009

UIView atmeretezes az IB-ben

Csak akkor lehet atmeretezni UIView-t az Interface Builder-ben a View Size tab-on (Tools/Size Inspector), ha a View Attributes tab-on (View/Attributes Inspector) az osszes Simulated Interface Element ki van kapcsolva. A 3-as SDK-tol a Status Bar default Gray-re van allitva None helyett es amig ezt nem allitjuk at None-ra, addig nem lehet atmeretezni a View-t.

Furcsa, hogy ha mindharom Simulated Interface Element-et kikapcsolom, akkor a Height marad 460 ugyanugy, mitha a Status Bar-t bellitom valamire, de ha mondjuk a Bottom Bar-nak beallitom a Tab Bar-t, akkor 460 frame-rol 431 frame-re ugrik ossze a View. Ez meg ertheto is lenne, ha a TabBar 29 frame magas lenne, de az 49 frame magas.

Az is fura, hogy ha a Bottom Bar-ra bellitom a Toolbar-t vagy Black Toolbar-t, akkor a View magassaga 436 frame lesz, de ha Translucent Black Toolbar-t valasztom akkor a View-t 480 frame magasra allitja be.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.