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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:10:47+00:00 2026-05-27T21:10:47+00:00

In my three 20 project i am calling and sending some parameters to a

  • 0

In my three 20 project i am calling and sending some parameters to a method of my view controller using map object. I am passing the image name through parameter to my view controller. I have bound a xib file with my view controller . my xib contains a toolbar at the top and uiimage view. My problem is that when i pass parameter to my custom method and load my xib file in the next line then my view controller’s view is not displayed on the screen. I am receiving the parameter in my custom method but unable to load xib on the screen.
I am using the following custom method

-(void)loadImageWithName:(NSString *)img
{
    PhotoView *vw = [[PhotoView alloc] initWithNibName:@"PhotoView" bundle:nil];
    UIImage *tempImage = [UIImage imageNamed:img];
    [vw.drawImage setImage:tempImage]; 
    [self presentModalViewController:vw animated:YES];
}

When i do this i can see my xib loaded on the window.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [[TTURLRequestQueue mainQueue] setMaxContentLength:0];

     TTNavigator *navigator = [TTNavigator navigator];
    navigator.window = _window;

    TTURLMap *map = navigator.URLMap;
    [map from:@"tt://appPhotos" toSharedViewController:[PhotoViewController class]];
    [map from:@"tt://photo" toSharedViewController:[PhotoView class]];
    [navigator openURLAction:[TTURLAction actionWithURLPath:@"tt://photo"]];

    [_window makeKeyAndVisible];

    return YES;
}

But when i do this my xib does not load and i see only a white screen

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [[TTURLRequestQueue mainQueue] setMaxContentLength:0];

    TTNavigator *navigator = [TTNavigator navigator];
    navigator.window = _window;

    TTURLMap *map = navigator.URLMap;
    [map from:@"tt://appPhotos" toSharedViewController:[PhotoViewController class]];
    [map from:@"tt://photo/(loadImageWithName:)" toSharedViewController:[PhotoView class]];
    [navigator openURLAction:[TTURLAction actionWithURLPath:@"tt://photo/myphoto.png"]];

    [_window makeKeyAndVisible];

    return YES;
}

This is the issue that i am facing right now.

I solved the above issue by using

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [[TTURLRequestQueue mainQueue] setMaxContentLength:0];

     TTNavigator *navigator = [TTNavigator navigator];
    navigator.window = _window;

    TTURLMap *map = navigator.URLMap;
    [map from:@"tt://appPhotos" toSharedViewController:[PhotoViewController class]];
    [map from:@"tt://photo/detail?name=(initWithImage:)" toSharedViewController:[PhotoView class]];
    [navigator openURLAction:[TTURLAction actionWithURLPath:[NSString stringWithFormat:@"tt://photo/detail?name=%@",@"level_me_up_small.png"]]];

    [_window makeKeyAndVisible];

    return YES;
}

But still there are two probe.

  1. i am getting extra space between my toolbar at top and uiimageview.

2.UIImageView image is not changed to instant_poetry_small.png.

  • 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-27T21:10:47+00:00Added an answer on May 27, 2026 at 9:10 pm

    not sure if it will help, but try this:

    vw.drawImage = [[UIImageView alloc]initWithImage:tempImage];
    

    instead of

    [vw.drawImage setImage:tempImage];
    

    the rest of the code looks OK for me

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

Sidebar

Related Questions

I have three projects 1)unmanaged c++ containing full business logic 2)C++/CLI ( Project name
Currently am doing project on Family Business. In that I need some video calling
I'm calling a non-.NET dll from my project using P/Invoke, meaning that the .dll
I have several projects open in an Eclipse workspace. Like so: com.harbl.project.one com.harbl.project.two com.harbl.project.three
I'm working on a very large project with three phases of source code. Development
After three years working on a C++ project, the executable has grown to 4
In my project I have the following three interfaces, which are implemented by classes
I have three different configurations on my project, all three do not require all
I have an Android project that branched into three different applications, app-1 , app-2
I have a project which has shared functionality between three other projects and have

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.