07-01-2009, 02:27 AM
|
#1 (permalink)
|
|
Registered Member
Join Date: Jun 2009
Posts: 13
|
Navigation bar "prompt" height
Hi all,
The navigation bar is 44 pixels in height but what is it when "prompt" is set with text? By my calculations it expands to 74 pixels but I really don't want to hard code this number in case it changes in the future.
The following returns 44 (as it should) but it still reports 44 even when the prompt is showing:
self.navigationController.navigationBar.frame.size .height
Any ides?
Justin.
|
|
|
09-02-2009, 09:51 AM
|
#2 (permalink)
|
|
Registered Member
Join Date: Jun 2009
Posts: 13
|
The reason was because I read the variable before the default animation had finished so the value had yet to be updated.
This is fine once the animation has finished, but is it possible to read that default value (of 74 pixels) from a constant somewhere? Is there a magic header file somewhere with UI constants?
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 516 |
| 45 members and 471 guests |
| 9livesoftware, al31, Alexman, bartender, CanadaDev, ChristyS, coulls, davidloew, dbarrett, DenVog, designomatt, dljeffery, DorkyMohr, dsailer, ethanwa, fabiolpi, ggalante, grouchal, HUngable, iphonedevelopment@me, issya, javaconvert, jixu2002cn, josechuis, jschorn, learnSomething, marciokoko, masc2279, MiniRobinho, mlo, Mopedhead, m_kaminsky@yahoo.com, P2k, pablo.roqueta, popclock, ryguy2503, seriessix, SmallWonder, Stephane.tamis, themathminister, TunaNugget, wheli, ZunePod |
| Most users ever online was 779, 05-11-2009 at 10:55 AM. |
» Stats |
Members: 21,491
Threads: 35,773
Posts: 156,705
Top Poster: smasher (2,448)
|
| Welcome to our newest member, DorkyMohr |
|