| iOS Development Discussion on developing apps for the iOS platform. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Aug 13, 2011
Location: West Sussex, UK
Posts: 143
![]() |
You have to drag from the UIButtons connections inspector to the app delegate, or view
controller class, and select the desired IBAction method. By default all UIButton action events are set to touch up inside, and connected to the app delegate with that connection, but you can also have any number of the other action methods also connected to the same method. Try and right click the button, then drag from the round connection marker, next to the touch down action, and drag to the class object cube where the IBAction method is implemented, and then select the method from the list. Regards Mark Last edited by Mark FX; 04-25-2012 at 02:10 PM. |
| QUOTE Thanks | |
![]() Member Since: Aug 13, 2011
Location: West Sussex, UK
Posts: 143
![]() |
The First Responder cube object in the Interface Builder is an abstract class, that really
represents nil, in the standard Xcode templates the first responder is linked to the main window, and is the first place all user nil target action events are sent, then the window forwards thes action events up the responder chain, The main menu for the application in the standard template also has its methods connected to the first resopnder, most controls views windows and the application itself are all in the responder chain, if you want a particular control or project class to be the first responder, then override the method below. Code:
- (BOOL)canBecomeFirstResponder
{
return YES;
}
Code:
[[self view] becomeFirstResponder]; below. Code:
[[self view] resignFirstResponder]; responder set up as is, that way you can be sure that what ever view is currently on the main window, it will recieve the user action events. Regards Mark |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| iPod Touch Gen 3 APPLICATION issues... | Lany | Apple Notebooks | 4 | 01-28-2011 02:09 AM |
| Office:mac 2004, a fine Product Of Software | mathogre | OS X - Apps and Games | 12 | 03-02-2007 10:30 AM |
All times are GMT -4. The time now is 08:24 PM.
Powered by vBulletin