How do you programmatically select TabBar VC within the MORE section?

Can anyone help me figure out how to programmatically select a view controller that is beyond the main 4 tabs in a TabBarController? Usually you can use:
tabBarController.selectedIndex = NSUInteger;
but once you have more than 5 Tabs, you get the "More" tab as #5 and the others go into their own TableView. If you try to change selectedIndex to any # > 4 you get an NSRange error.
I have tried the following workaround unsuccessfully:
UIViewController *desiredVC = [[tabBarController.viewControllers] objectAtIndex:5];
tabBarController.selectedViewController = desiredVC;
where tabBarController is a UITabBarController;
Still no go. Any help would be greatly appreciated.

I came up with this solution:
[self.tabBarController.moreNavigationController popToRootViewControllerAnimated:NO];
[self.tabBarController setSelectedIndex:4];
[self performSelector:@selector(selectMore:) withObject:newViewController afterDelay:0.1f];
- (void) selectMore:(UIViewController *)controller
[self.tabBarController.moreNavigationController pushViewController:controller animated:NO];
It's does the job, but the "More..." list is shortly displayed before the newViewController is displayed.
Is there another way to handle this problem?

Similar Messages

  • When you have a list or blog within a box on a page, how do you get it to scroll within the box.

    When you have a list or blog within a box on a page, how do you get it to scroll within the box?

    Thanks so much!  Whatever I was trying only worked randomly. You made my day!

  • How do you programmatically register custom tags through the adminapi?

    Hello,
    I am not able to find much documentation out on the net on how to write codes to programmatically register custom tags through the adminapi (extensions.cfc). The only examples I have been seeing involve setting up datasources. Any advice you can provide is appreciated. Thanks.
    Best regards,
    C. Lee

    Short answer:
    The problem is that the login method is a bit goofy in that it requires the password first and the username second. Assuming you are using a valid password (and not the string "password" you are showing), reversing them should solve your problem.
    Long answer:
    As background for those interested, in order to call any method in any of the Admin API CFCs, one does have to log in programmatically, providing a valid CF Admin password, or password/username combination if you have enabled multiple user logins for the CF Admin. (Multiple user logins in the Admin is an optional feature since CF 8.)
    If one does not setup multiple user names, then you only need to pass a password to the login method (just as on the login page of the CF Admin). Technically, the default username in that case is "admin", and you can specify it if you want to, but again it has to be password then username, on this login method. (The Admin API was added in CF 7, before the multiple usernames feature was added, so it looks like they just added it as a new argument.)
    You can learn more about multiple user logins in the CF Admin (and an option to change or remove the default "admin" username) an Adobe DevCenter article linked to from http://www.carehart.org/articles/#2009_1.
    Note finally that the username/password field values are case-sensitive, even on Windows, and the default username really is "admin" not "Admin".
    This discussion of needing to login is documented on the page that Adam pointed to (see the "using" and "examples" sections of the page). There's even a comment from someone pointing out the need to put them in password/username order (because it's not mentioned in the docs). I also just added a comment there about the case sensitivity, either of which could bite someone. Let's hope they update the docs in the next release to clarify both these points.
    /charlie

  • Also how can you get an image preview in the video section

    The music videos you buy in iTunes come with a preview that is displayed. I tried capturing an image with VLC, then converting it to a JPEG. But the when I "get info" and try and drop or paste the image it won't allow me. Any Tips?

    The music videos you buy in iTunes come with a
    preview that is displayed. I tried capturing an
    image with VLC, then converting it to a JPEG. But
    the when I "get info" and try and drop or paste the
    image it won't allow me. Any Tips?
    To set "poster frame"
    -Play video in iTunes
    -Click on video so it brings up a 2nd window (its own window)
    -Locate the "frozen picture" by pausing. You can manually shift through the whole video by using slider.
    -When you have your picture, right click, and choose "set poster frame".

  • How do you get rid of or reduce the "other" section in iTunes for an iPhone 5?

    I have more space taken labled as "other" than I do anything else. I've spent hours researching and I've tried many different things. Please help!!!

    You should import all pics taken with the iphone as you would from any digital camera.
    You should amke sreu you ahve synced your contacts/calendars to your computer
    You should transfer your itunes purchases made from the iphone to your computer.
    Make sure that you have put everything on your computer, if you haven't already, before restoring.
    The backup does not contain any itunes content.  Contacts are only backed up to keep recents and favorites.  I would never rely on the backup for your pics.  You should importing them to your computer regularly as you would with any digital camera

  • Itunes match  how do you to select multiple songs or do you click each one

    In ITunes match  how do you to select multiple songs to download to pc or do you have to click each one.

    First make sure you have the current version of iTunes, which is actually 10.5.1.  I had to manually download it from apples website, for some reason, it wouldnt auto-update.
    http://www.apple.com/itunes/download/
    Once that is complete, go to the iTunes store. In the Quick Links secion to the right, you should see iTunes Match. This will prompt you to activate your subscription to iTunes match.  After that it should ask you to add your computer and once youve done that, it should begin the process of scanning your library and adding it to the cloud
    Alternatively, once you activate your subscription, you can also go to the Store dropdown menu in iTunes and select Turn On iTunes Match.

  • HT1848 how do you transfer selected purchases (i.e. specific songs, not everything)  from iPad to your Mac?

    how do you transfer selected purchases (i.e. specific songs, not everything)  from iPad to your Mac?

    See your duplicate post : https://discussions.apple.com/message/21574694#21574694

  • 5.1 SP10 How do you programmatically make a datasource from a dynamically created Pool?

    How do you programmatically make a data source from a dynamically created Pool?
    I can make the Pool OK but can not find any classes the return a datasource
    given a JDBC Pool.
    Thanks in advance

    Hi John,
    weblogic 5.1 doesn't have API allowing dynamic creation
    of datasources. 6.1 does.
    Regards,
    Slava Imeshev
    How do you programmatically make a data source from a dynamically createdPool?
    >
    I can make the Pool OK but can not find any classes the return adatasource
    given a JDBC Pool.
    Thanks in advance

  • How do you link a pdf. document within a Keynote slide?

    How do you link a pdf. document within a Keynote slide?

    Gary, I'm trying to save a Keynote presentation that was created from a Powerpoint presenation using PDF files.
    It imported beautifully, problem is it won't play. Keeps giving me a "Keynote cannot play your slideshow because an error occured" message.
    I thought it was a Powerpoint/Keynote incompatibility thing, so I recreated the presentation - 1 pdf per slide just like you have here (I did this before finding your post) and it still wouldn't play. I even tried JPG - nothing; just horrible looking images.
    Is there something I'm missing?

  • Why are there so many more choices on the USA iTunes Store? Surely having an iTunes account should let you access all itunes availability the world over? Also how do you request films/tv series to the UK itunes?

    Why are there so many more choices on the USA iTunes Store? Surely having an iTunes account should let you access all itunes availability the world over?
    Also how do you request films/tv series to the UK itunes? There's tv series I'd like but they're incomplete like The Batman & Xena Warrior Princess. And films theta aren't available for download but you can purchase in a store like HMV?  Apple isn't doing itself any favours by secluding countries by their store. They'd make billions if you could just select the iTunes Store you want to search & purchase from just by signing in! If anything what they're doing is putting themselves into a corner, other companies like Samsung & HTC are already on too of them for innovation & ease of use. The people they're attracting are predominantly existing Apple users not new customers. What do you guys think?

    It's not Apple's choice, they can only sell a particular item where the content provider/rights-holder has granted them a license to sell them. Content is licensed by the rights-holders to Apple on a country-by-country basis, each country therefore has to have its own store, and you have to be in a country to use its store - they want control over where their content is available.
    You can try requesting that an item be added to the UK store via this page, but unless the rights-holder agrees to then Apple won't be able to sell it here : http://www.apple.com/feedback/itunes.html

  • How do you add an application event to the Applications Panel

    How do you add an application event to the Applications Panel.
    My previous post referred to .ashx files, and the problem seems that Firefox, by default, does not recognize a .ashx format being read by Adobe Acrobat.
    Therefore there needs to be a way to add Applications and Events into the Applications Panel under Preferences

    domdp wrote:
    ...I have Theme L selected and I get 10 icons along the left side and bottom....
    ...I am thinking I may be limited to 10 icons....
    Gotcha... But actually its limited to 9 icons in the L theme as the Profiles icon is always present. From that screen hit the Menu key to display the bigger list of icons. Arange them so the first 9 icons are the ones you want to see on the L theme.

  • Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. Thanks.

    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. I am getting lots of spelling errors as the MacBook laptop screen is too small. Thank you so much! .

    Contentmom6 wrote:
    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work.
    Normally, you just connect the monitor to the MacBook using a VGA adaptor that you can buy from an Apple Store.  Now try System Preferences > Displays > Detect Displays.  You should now be able to select a display mode for the monitor.  If it still doesn't work, then I'd check that everything is properly connected.  I've had problems with colours disappearing due to a faulty connection in the VGA adaptor.
    Bob

  • How do you make "Acrobat X Pro" open the "combine pdf" window in the foreground?

    How do you make "Acrobat X Pro" open the "combine pdf" window in the foreground?
    I am using a "Windows 7" computer at work with "Acrobat X Pro" and I'm constantly combining
    pdf's and tiff's in Acrobat.
    It would be nice if when I select 30 or 40 files to combine, the
    "Combine Supported Files in Acrobat" window would open in the
    foreground, not behind the 10 or so windows already open.
    I have been researching this for some time now with no solution.
    If the answer is that "IT CAN'T BE DONE", then that's fine. At least
    I will have an answer and can stop searching. If (as I suspect) it can
    be done, then kindly supply me with "step by step" instructions.
    Michael Jones

    Something that works  (provides Acrobat the application precedence in the OS that is requisite for this) --
    Minimize the 10 or so application windows before engaging use of Acrobat's "combine".
    That'll let the Acrobat dialog windows display front and center.
    Be well...

  • How do you move a sound clip in the timeline?

    I have not had this problem before. I have put many songs into the timeline, and repositioned them. Today I pulled up a project and attempted to reposition a song to fit in better with the clip, and I'm unable to do so. I can't select the song, or anything else. Obviously I have set or locked up this track, and I can't figure out how to unlock if that is what I have done. I have 6 songs on that track, Audio track 2, and I can't reposition any of them. I can't even remove them from that track. What am I doing wrong?

    Hunt, most of my music files, over 9000 songs, are mostly mp3 files and a few are wma, and because of copyright laws I wouldn't use them in a commercial project I'm working on anyway. When I am working on a project for a client I will generally use higher quality WAV files. This project was being done just to learn some new techniques, gain some more experience with PPCS4, and expand my knowledge with the program. I have this huge number of music files and styles to work with, so I can do a great deal of experimentation to see what different songs can do to the mood of the video.
    As a test, I did put the exact same songs into the timeline on a different audio track. The problem track is audio 2, and I duplicated those songs on audio 3. I did the exact same editing. I faded them in and out the same as before. Split one song into 3 sections had parts of it come in and out over a video section of 9 minutes duration. They are working perfectly. I was just working on one section of that project a half hour ago, and I was still able to select and move each of the four songs on that track any way that I wanted to. However, the track just above it in that same timeline, Track 2, is still frozen.
    Hunt, just a moment ago I solved my problem. Still not being that familiar with the program, two days ago I know that I was playing with all of the controls, and I obviously hit one of them without knowing one of its side effects. I hit the show "show track keyframes". I'm sure that you know it, but I didn't realize that when that function is selected, you can't do much else with the track but play with those keyframe. Even though I didn't have the track locked, in the traditional way, it was still, for all practicall reasons, locked. I unchecked that function and now everything is back to normal again on that track.
    Something very simple, as many things turn out to be when you understand it. However, maybe someone else will make the same mistake, and my posting here will help them.
    I will use your suggestions for using .WAV files. Thank you again. 
    Terry Lee Martin
    Date: Mon, 7 Sep 2009 14:29:37 -0600
    From: [email protected]
    To: [email protected]
    Subject: How do you move a sound clip in the timeline?
    Terry,
    What is the purpose of using the .WMA files? I'm sure that you have a good reason, but they can be problematic, at best. I only use them as a trasfer medium, when I need to get a DD 5.1 SS soundtrack into Audition for editing. There, I break them out into 6 discrete .WAV files, edit in Multi-track Mode and then usually Export as the 6 discrete WAV's to be encoded to DTS, or similar.
    If you do not have a compelling reason for using the .WMA, try PCM/WAV @ 48KHz 16-bit and see if the issues go away.
    Good luck, and let us know how it goes please,
    Hunt
    >

  • How do you get Groups to work on the IPAD? They imported and show in Address Book but when used, only the first address picks up.

    How do you get Groups to work on the IPAD. They show in address book but only the first name is used when entering.

    When you select the bookmark on the upper left, you should be able to see multiple groups.
    For the groups page, select the bookmark on the upper right to see the individual entries.

Maybe you are looking for