This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
txtEmail.EditingDidBegin += delegate | |
{ | |
UIUtils.SetKeyboardEditorWithCloseButton(txtEmail, UIKeyboardType.Default); | |
UIUtils.AnimateTextField(View, true); | |
}; | |
txtEmail.EditingDidEnd += delegate | |
{ | |
UIUtils.AnimateTextField(View, false); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private T callService<T>(string method, string json, string auth, bool post = false, List<string> headers = null) where T : new() | |
{ | |
string url = string.Format("{0}/{1}", _configuration.BaseUrl, method); | |
var request = WebRequest.Create(url) as HttpWebRequest; | |
request.Method = !post ? "GET" : "POST"; | |
request.Accept = "application/json"; | |
request.ContentType = "application/json"; | |
request.Headers["Authorization"] = auth; | |
if (headers != null) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// place this in your controller | |
// View is the view the control sits in | |
// txtSelect is the name of the textbox the spinner "sits" in - as soon as you select | |
// the textbox, the UIPickerView fires up | |
// information is a List<string> | |
txtSelect.EditingDidBegin += delegate | |
{ | |
txtSelect.InputView = PickerUI.CreateDropList(View, new UIPickerView(), txtSelect, information); | |
}; |
NewerOlder