Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 02-08-2012, 03:59 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 321
melmoup is on a distinguished road
Default titleView in navigationItem positioning

Hi,
I have a UIButton as a titleView in the navigator bar, I also have a custom view as the right button.
The titleView is positioned automatically to make room for the right button.
In my case I want that the rightButton view is over the titleView. (It's an expanding menu, when expanded can be on top of titleView)
Is there a way to avoid titleView "auto" repositioning?
Thanks

Last edited by melmoup; 02-08-2012 at 04:02 PM.
melmoup is offline   Reply With Quote
Old 02-09-2012, 11:41 PM   #2 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 94
JamesCahall is on a distinguished road
Default

Quote:
Originally Posted by melmoup View Post
Hi,
I have a UIButton as a titleView in the navigator bar, I also have a custom view as the right button.
The titleView is positioned automatically to make room for the right button.
In my case I want that the rightButton view is over the titleView. (It's an expanding menu, when expanded can be on top of titleView)
Is there a way to avoid titleView "auto" repositioning?
Thanks
Maybe not the best way to do it, but I know it works:

You can replace the titleView with a view that has a uitoolbar as a subview. Set the toolbar items with an nsarray of items including your right button and any other buttons. Adjust the spacing of the buttons with flexible or fixed spacing items in the nsarray.
JamesCahall 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



» Advertisements
» Online Users: 399
13 members and 386 guests
7twenty7, chiataytuday, chits12345, fiftysixty, gmarro, iOS.Lover, KennyChong, kilobytedump, Leslie80, Matrix23, ryantcb, xerohuang, Yosh_K
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,670
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Yosh_K
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:23 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0