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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:26:18+00:00 2026-06-03T23:26:18+00:00

I am implementing FB kind of functionality where I populate a list of menu

  • 0

I am implementing FB kind of functionality where I

  1. populate a list of menu from database on left side.
  2. clicking any of menu loads a related web page inside webview.

Both Menu’s and Webview are in different viewcontroller

When menu gets clicked, I send notification message to first viewcontroller and inside notification message I write code to loadRequest.

However this is not working. I am able to loadRequest successfully from first Viewcontroller.however it is not possible to do from another viewcontroller.

here is my code:

ViewController 1:

in ViewLoad

NSNotificationCenter *note = [NSNotificationCenter defaultCenter];
[note addObserver:self selector:@selector(eventDidFire:) name:@"ILikeTurtlesEvent" object:nil];

    - (void) eventDidFire:(NSNotification *)note {
            web.delegate=self;
        [web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];
     }

in ViewController 2:

NSNotificationCenter *note = [NSNotificationCenter defaultCenter];
[note postNotificationName:@"ILikeTurtlesEvent" object:self];
  • 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-03T23:26:19+00:00Added an answer on June 3, 2026 at 11:26 pm

    This could be the another option for what you are trying to do:

    viewcontroller1.h:
    -(void)clickmenu:(id)sender;
    
    viewcontroller1.m:
    -(void)clickmenu:(id)sender
    {
      viewcontroller2 *obj = [[viewcontroller2 alloc] initWithNibName: @"viewcontroller2" bundle: [NSBundle mainBundle]];
    [obj Loadwebview:[NSURL urlwithstring:@"http://www.google.com"]];
    }
    
    
    ViewController2.h:
    -(void)Loadwebview:(NSURL *)url;
    viewcontroller2.m:
    -(void)Loadwebview:(NSURL *)url
    {
          web.delegate=self;
        [web loadRequest:[NSURLRequest requestWithURL:url]];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am implementing Advanced Search kind of functionality for an Entity in my system
I am implementing a kind of IP finder for a particular type of network
Implementing the ScriptControlClass was extremely easy, unfortunately the side effects with the language implementation
I am implementing an multilingual web site using ASP.Net. The languages are English,French and
I am implementing a flow where the user can either select a photo from
I am trying to implement SMS kind of swipe and delete functionality. In case
I'm implementing a contact database that handles quite a few fields. Most of them
Are there any suggested practices for implementing long-running operations in Tomcat? e.g. is it
I'm having problems implementing a kind of comments form, where comments (called microposts) belong_to
While implementing this generic merge sort , as a kind of Code Kata ,

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.