First Responder on iOS
First Responder on iOS
- Subject: First Responder on iOS
- From: Graham Cox <email@hidden>
- Date: Sat, 15 Jun 2013 16:06:40 +1000
Developing a simple iOS app, I've run into a little misunderstanding about First Responder.
On the Mac, the app's delegate gets messages intended for FR that reach NSApplication, on iOS, that appears not to be the case.
My app needs a simple action method that can be accessed from two different views. On iPad it gets sent from a control in a different view than it does on iPhone, because the iPhone doesn't have enough screen space for the control so I moved it to a second view there. I figured if I could put my action method in a common location that could be accessed via the responder chain, it wouldn't matter which view had the control. Unfortunately I found that adding the action method to the app delegate doesn't work as it would on Mac.
Does this mean I can't do this without subclassing UIApplication? Or is there a better common location I can put a method like this?
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden