Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-01-2009, 01:27 AM   #1 (permalink)
yes
Registered Member
 
Join Date: Jun 2009
Posts: 13
Default 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.
yes is offline   Reply With Quote
Old 09-02-2009, 08:51 AM   #2 (permalink)
yes
Registered Member
 
Join Date: Jun 2009
Posts: 13
Default

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?
yes is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 23,966
Threads: 38,751
Posts: 170,024
Top Poster: smasher (2,560)
Welcome to our newest member, cruisetom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:55 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0