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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:14:38+00:00 2026-05-16T10:14:38+00:00

To be honest I don’t know how to call it, so I’ll try to

  • 0

To be honest I don’t know how to call it, so I’ll try to describe it.

UIApplicationDelegate protocol has “application:handleOpenURL:” method. And if I implement this method in my ApplicationDelegate class, it will be called when somebody opens my urls.

details:
http://developer.apple.com/iphone/library/documentation/uikit/reference/UIApplicationDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UIApplicationDelegate/application:handleOpenURL:

However, I’d like my other class (uiviewcontroller) to receive this call. To make a different example – you can create a few classes and each of them can get GPS position. Is it possible to do the same with UIApplicationDelegate protocol?

I searched a lot for this topic here, but I couldn’t find any answer on how to do it. I know how to get my application delegate ([[UIApplication sharedApplication] delegate]), but it’s not the case in this situation.

  • 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-16T10:14:39+00:00Added an answer on May 16, 2026 at 10:14 am

    You can always tell somebody who came to objective-c from some other object oriented language, because their first instinct is to subclass, subclass, subclass. There’s not a lot of subclassing in obj-c. You CAN, obviously, but it’s not how things are conventionally done, especially with things that are as one-shot-ish as UIApplicationDelegate. The more Cocoaish Way is to use categories, or sometimes to create a new NSObject subclass that contains the would-be parent class as a property.

    In this case, for sure subclassing is a bad idea. the UIApplication singleton can only have one delegate property. So if you create a new UIApplicationDelegate, you’ve got no place to hook to it.

    Instead, smarten up your one delegate’s application:handleOpenURL: method to catch the URL call and load up whichever UIViewController subclass (I know, I know: exceptions) is going to handle it.

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

Sidebar

Related Questions

to be honest, I don't really know what the small green men in my
I don't really know how to ask this, so I wrote up the script
Well, to be honest it works just for one client, don't really know why.
I don't know how else to ask this, and I think the title could
To be honest, I don't know much about OCaml's object system. The following snippet
So the honest truth is that I don't even know what terms I'd search
Alrighty, I don't know how I did this, probably the AS3 gods became angry
To be honest, I do not really know how to name that problem. I'll
I'm going to be honest: this is a question I asked on the Django-Users
Hey all. To be honest, I don't prefer MS Access as a relational database

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.