__________________________________
Please type your reply at the top of the email...

------------------------------------------------------

 

 



Bryan Moulton | AUG 13, 2012 02:45PM EDT




Hi Mike,

I did experience this with a UISearchBar with a search display controller. You 
should call BecomeFirstResponder in the view controller's ViewDidAppear method. 
This worked much better for me.

Thanks!
-Bryan



------------------------------------------------------
Please, rate my reply:
http://nicereply.com/xamarin/16386693/15253





------------------------------------------------------




 





Mike | AUG 13, 2012 10:32AM EDT 

  




I am using a search bar off of the search display controller if that makes a 
difference?

From: Xamarin Support [mailto:[email protected]]
Sent: Friday, August 10, 2012 6:43 PM
To: Mike Murdock
Subject: Re: Search Bar First Responder





------------------------------------------------------




 



Bryan Moulton | AUG 10, 2012 06:43PM EDT




Hi Mike,

What version of XCode/MonoTouch are you using? I had success with this:

public override ViewDidLoad()
{
var bar = this.View.Subviews[3] as UISearchBar;
bar.BecomeFirstResponder();
}

Maybe some sample code would help?

Thanks!
-Bryan





------------------------------------------------------




 





Mike | AUG 10, 2012 11:25AM EDT  | Original message 

  




Trying to get the search bar to respond to be the first responder have the 
delegate class for searching BecomeFirstResponder does not seem to work in 
viewdidload, viewdidapprear or in the delegate class.

Any help would be great

Michael Murdock
Software Engineer

(865) 482-1999
(865) 481-0921 fax
www.allmeds.com<http://www.allmeds.com>













------------------------------------------------------

For your reference this is Case #: 15253

------------------------------------------------------


Support powered by Assistly (http://www.assistly.com/)

[[202e5049c276026175ec25ff54f446bbdbdedefc-56506402]]
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to