I do not understand the term “FirstResponder”. I have not run across anything that indicates it is anything expect “THE Responder”. Either a control is FirstReponder, or its not, and there can only be one (yeah I watched the Highlander)
But “FirstReponder” infers that there is a “SecondResponder”
[quote=152700:@Dave S]I do not understand the term “FirstResponder”. I have not run across anything that indicates it is anything expect “THE Responder”. Either a control is FirstReponder, or its not, and there can only be one (yeah I watched the Highlander)
But “FirstReponder” infers that there is a “SecondResponder”[/quote]
Well. There is a nextResponder described at the page I posted.
[code]nextResponder
Returns the receiver’??s next responder, or nil if it has none.
Declaration
SWIFT
func nextResponder() -> UIResponder?
OBJECTIVE-C
(UIResponder *)nextResponder
Return Value
The next object in the responder chain to be presented with an event for handling.
Discussion
The UIResponder class does not store or set the next responder automatically, instead returning nil by default. Subclasses must override this method to set the next responder. UIView implements this method by returning the UIViewController object that manages it (if it has one) or its superview (if it doesnt); UIViewController implements the method by returning its views superview; UIWindow returns the application object, and UIApplication returns nil.[/code]
There is always one responder, but they can be several in succession…
Hi Dan
If this SetFocus works or no.
i try but no works.
Errors
Asamblea_Reg.SetFocusiOS Declaration
The extends modifier cannot be used on a class method
Sub SetFocusiOS(extends vCtrl as iOSControl)
Asamblea_Reg.ClsData, line 12
This method extends class iOSControl, but the base expression is class Asamblea_Reg.Asamblea_Reg.
SetfocusiOS(TxtBuscar.Handle)
[quote=468153:@Alexis Colon Lugo]Hi Dan
If this SetFocus works or no.
i try but no works.
Errors
Asamblea_Reg.SetFocusiOS Declaration
The extends modifier cannot be used on a class method
Sub SetFocusiOS(extends vCtrl as iOSControl)
Asamblea_Reg.ClsData, line 12
This method extends class iOSControl, but the base expression is class Asamblea_Reg.Asamblea_Reg.
SetfocusiOS(TxtBuscar.Handle)[/quote]
We need to see some code. The function he posted works