Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6746537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:20:04+00:00 2026-05-26T12:20:04+00:00

I have a question regarding view controller navigations in Three20. I have a TTTableView

  • 0

I have a question regarding view controller navigations in Three20. I have a TTTableView “Gallery” and TTPhotoViewController “Photos”. When I touch inside one table view item, the app will navigate to a photo view.

Here are the code I used:

In the AppDelegate.m - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions method,

TTNavigator *navigator = [TTNavigator navigator];
navigator.supportsShakeToReload = NO;
navigator.persistenceMode = TTNavigatorPersistenceModeAll;


TTURLMap *map = navigator.URLMap;
[map from:@"*" toViewController:[TTWebController class]];

[map from:@"tt://launcher" toSharedViewController:[LauncherViewController class]];

[map from:@"tt://photos" parent:@"tt://gallery" toViewController:[PhotoViewController class] selector:nil transition:0];
[map from:@"tt://gallery" parent:@"tt://launcher" toViewController:[GalleryViewController class] selector:nil transition:0];

The GalleryViewController is a tableview Controller

@interface GalleryViewController : TTTableViewController
@end

In the GalleryViewController.m

-(void)createModel
{
    self.dataSource = [TTListDataSource dataSourceWithObjects:
                   [TTTableSubtitleItem itemWithText:@"Album One" subtitle:nil imageURL:@"http://example.image.url" URL:@"tt://photos"]
                   ,
                   [TTTableSubtitleItem itemWithText:@"Album Two" subtitle:nil imageURL:@"http://example.image.url2" URL:@"tt://photos"],
                   nil];
}

I copied this code from the TTCatalog.xcodeproj sample project. But I cannot drill into the photo view and got the following from the console when I try to navigate to photo view from the table view item.

nested push animation can result in corrupted navigation bar 
Finishing up a navigation transition in an Navigation Bar subview tree might get corrupted.
Unbalanced calls to begin/end appearance transitions for <PhotoViewController: 0x6c5d8f0>.

So I don’t know how to solve this question. Thanks!

——–Update:———-

I figured out how to solve the problem. In the AppDelegate methods, use

[map from:@"tt://launcher" toSharedViewController:[LauncherViewController class]];

[map from:@"tt://photos" parent:@"tt://gallery" toSharedViewController:[PhotoViewController class] selector:nil];
[map from:@"tt://gallery" parent:@"tt://launcher" toSharedViewController:[GalleryViewController class] selector:nil];

instead of the [map from: parent: toViewController: selector: transition:]

But here comes another question, can someone explain why the toSharedViewController can solve this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:20:05+00:00Added an answer on May 26, 2026 at 12:20 pm

    For your intended use, you don’t even need to use - from:parent:toSharedViewController:, just try - from:toViewController:. The reason for this is that your way to the PhotoViewController is straight forward (Launcher -> Gallery -> Photo).

    For the case that you want to navigate to the PhotoViewController directly from the LauncherViewController while having the GalleryViewControllerin between (i.e. having a back-button on the top left of your PhotoViewController pointing to the GalleryViewController), you want to call - from:parent:toSharedViewController:.

    Currently, you are calling - from:parent:toSharedViewController:, which will reuse the shared controller, thus not generating the “nested push”-warnings:

    Controllers created with the “share” mode, meaning that it will be
    created once and re-used until it is destroyed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question regarding keeping the controller and view separate. It seems to
I have one question regarding domain account. I have one domain controller where all
I have a question regarding uitable view. I am implementing an app which is
I have a question regarding to self.view in a UIViewController. First, in my app,
I have question regarding the SQLAlchemy. How can I add into my mapped class
I have question regarding the use of function parameters. In the past I have
I have a question regarding the two additional columns (timeCreated, timeLastUpdated) for each record
I have a question regarding an update function I created... CREATE OR REPLACE FUNCTION
I have a question regarding handling errors in a J2EE application. Our current application
I have a question regarding dependency injection. say i want to create a class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.