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 7505869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:03:56+00:00 2026-05-29T22:03:56+00:00

My URL map is as follows: [map from:@tt://webPage/(initWithPage:) toSharedViewController:[WebPageController class]]; and in the WebPageController

  • 0

My URL map is as follows:

[map from:@"tt://webPage/(initWithPage:)" toSharedViewController:[WebPageController class]];

and in the WebPageController

- (id) initWithPage:(WebPage)page
{
    if (self = [super init])
    {
    ...

Then I called the url several times in my code

tt://webPage/1
tt://webPage/2
tt://webPage/1 (still called the initWithPage: everytime, not cached)

Why it is not cached as it is a SharedViewController?

  • 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-29T22:03:59+00:00Added an answer on May 29, 2026 at 10:03 pm

    I believe this is happening to you because TTNaviagtor is broken on iOS 5. see https://github.com/facebook/three20/pull/719/files. Have you tried running the same code on a iOS 4 with the same result?

    My recommendation to you is to stop using TTNaviagtor. You can still use the three20 library by pushing and poping TTViewController in the native ios method.

    Here’s an example on replacing the TTNaviagtor in your app delegate:

    @interface AppDelegate : NSObject <UIApplicationDelegate> {
    
     UIWindow* _window;
     TTBaseNavigationController* _masterNavController;
     WebPageController* _web1Controller;
     WebPageController* _web2Controller;
    }
    
    @property(nonatomic, retain) UIWindow* window;
    @property(nonatomic, retain) TTBaseNavigationController* masterNavController;
    @property(nonatomic, retain) WebPageController* web1Controller;
    @property(nonatomic, retain) WebPageController* web2Controller;
    

    And

    ///////////////////////////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////////////////////////////
    @implementation AppDelegate
    
    @synthesize window = _window;
    
    @synthesize masterNavController = _masterNavController;
    @synthesize web1Controller = _web1Controller;
    @synthesize web2Controller = web2Controller;
    
    ///////////////////////////////////////////////////////////////////////////////////////////////////
    - (BOOL)application:(UIApplication *)application 
        didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
      _window = [[UIWindow alloc] initWithFrame:TTScreenBounds()];
    
    
        TTViewController* controller = [[[MasterViewController alloc] init] autorelease];
        _masterNavController = [[TTBaseNavigationController alloc] initWithRootViewController:controller];
        [_window addSubview:_masterNavController.view];    
      }
    
      [_window makeKeyAndVisible];
    
      return YES;
    }
    

    then you can push and pop any TTViewController (or your own subclasses of TTViewController) into the _masterNavController. Personally, i think TTNavigator is a bad design pattern, and apple designed their navigation system in different mindset.

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

Sidebar

Related Questions

I was used to putting id's in the URL to map to an item
I have to map a REST Webservice URL like http://server:8080/application/service/customer/v1 to createCustomer method in
The URL http://www.fourmilab.ch/cgi-bin/Earth shows a live map of the Earth. If I issue this
the url is http://127.0.0.1:8000/maps/map/wwww/ ' how to get the last word thanks
I wrote a custom URL rewriting module, to take certain paths and map them
Starting using werkzeug, i try to map urls (from a file urls.py) to views
I am using three20's URL navigator and I want to create a map as
My application currently has a very simple URL layout: map.resource :account, :controller => users,
I have an image created from the Google Maps API static map library and
I have a Drupal website that has a page at the URL alias of

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.