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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:14:46+00:00 2026-06-04T00:14:46+00:00

I am trying to accomplish a task but not successful even after trying for

  • 0

I am trying to accomplish a task but not successful even after trying for several days.

I have a tabbar which contains 3 tabs Friends, Chat, Settings.

  • Friends tab is just a subclass of uitableviewcontroller, when user tap on any user he will be jumped to second tab which is a chat tab.

  • The second tab(Chat) contains a uinavigationscontroller. This uinavigationcontroller it self contains two views 1> chatting interface, 2> ActiveChats which is a sub class of uitableviewcontroller to show a list of people to whom user is currently chatting with.

  • What I want is when user is on first tab and select any of her friend to chat she must be jumped on second tab and directly see chatting interface to chat with her friend. Problem is I have to set a root view controller for the navigationcontoller which is going to be pre-initialized but I want that chatting viewcontroller must be initialized every time when user select her friend, I also implemented a method initWithId which must take a selected person id and deliver msg to that particular person and save send & received messages.

  • part two of the problem, this chatting interface is root view controller but i also want a back button on it so when user tap on it, user will see ActiveChat view. This functionality is similar to WhatsApp, Viber or OneTeam applications.

Please help me out and avoid any silly mistakes i am a newbie. Thank you.

  • 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-06-04T00:14:47+00:00Added an answer on June 4, 2026 at 12:14 am

    I understanf the first part of your problem as you want to initialize the object of your class with the user-specific details .
    You have made the flow pretty complex , had it been a navigation-based , it would have been a lot easier for you.Now here , as per you requirement you have to initialize your class on each row clicked so you will have to make your “chatting interface ” as a subview over your rootview of UINavigation or viewcontroller.view of the same and then in the viewDidLoad method of your rootView you can initialize your “chatting interface ” everytime.

    What i can infer from your other problem is that you want a back button to actually go to next page in UInavigationcontroller which is not pragmatic and doesn’t make sense.Simply Push the nextview on to the navigationController.

    From our comments,
    I saw the website and it is not a back button it has been customized to look as a back button.Apple doesn’t allow such things and you may risk your app.Anyways you can do it this way :-

    UIImage *image= [UIImage imageNamed:@"yourImage.png"]; //Here image shoulb be similar to backButton
    UIButton *yourButton= [UIButton buttonWithType:UIButtonTypeCustom]; 
    [yourButton setBackgroundImage:image forState:UIControlStateNormal]; 
    yourButton.font = [UIFont boldSystemFontOfSize:10]; 
    yourButton.frame = CGRectMake(0, 0, image.size.width, image.size.height); 
    [yourButton addTarget:self action:@selector(yourTarget) forControlEvents:UIControlEventTouchUpInside];  self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:yourButton]; 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to accomplish a fairly simple task for my website, but Im not
I believe task I am trying to accomplish is fairly easy, but I have
I'm trying to accomplish a task, but having some difficulty.Can someone set me straight
I'm trying to accomplish the following ridiculous task: I have a text file containing
I am trying to accomplish the task of Making a Web request ->getting result
I'm trying to accomplish a simple task of creating a database with 2 tables
I'm trying to accomplish what should be a very simple task using the ListView
I am trying to figure out how to accomplish the following task: Create a
The task I was trying to accomplish was that given an input pattern, e.g.
Heres what I'm trying to accomplish: I have a tagging system in place. Tags

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.