I need to consume Json in an iPhone project and for what ever reason, I’m <still> unable to get the preferred NewtonSoft.Json library to work in a MonoDevelop Project… thus, I’m giving System.Json a whirl. My end point call with an appended UISearchBar value appended looks something like this: var request = HttpWebRequest.Create (string.Format (@”your… Continue reading Parse Json in MonoDevelop with C#
Category: MonoTouch
Locating Your MonoDevelop Web Reference Properties
I have a Monotouch hobby project that I haven’t opened in a couple of Months because I’ve been too busy. It’s a simple project that will let me upload an image from my iPhone to a cloud service with tags, sharing and notification options. The cloud service is my own, I built it and I’ve added… Continue reading Locating Your MonoDevelop Web Reference Properties
Handling The UISwitch ValueChanged Event To Determine State In MonoTouch
Posting this to help anyone that was stuck trying to determine why the UISwitch State value always returned 0. The mistake I was making when handling the ValueChanged Event was this (my IBOutlet is switchPrivateOnOff): switchPrivateOnOff.ValueChanged += delegate { switchPublicWarning.Text = string.Empty; switchPublicWarning.Text = switchPrivateOnOff.State.ToString(); // attempt to dump toggle value to UILabel };… Continue reading Handling The UISwitch ValueChanged Event To Determine State In MonoTouch
Handle UIToolBarButtonItem Clicked Event in MonoTouch
The UIToolBar and the UIToolBarButtonItem add a nice professional look to an app. Hooking the click event of the Bar Button Item can easily accomplished. The full MonoDevelop Solution for this sample can be downloaded at the bottom of this blog post. Add a UIToolBar to your .xib from Interface Builder. Your screen should look… Continue reading Handle UIToolBarButtonItem Clicked Event in MonoTouch
Post UISearchBar Values to RESTful API from MonoTouch
In my previous blog post comments Chris asked for some Source Code so I’ve put together a sample using the UISearchBar. The App has 2 View Controllers and 2 zibs. HomeScreen.cs | HomeScreen.xib SearchResults.cs | SearchResults.xib You can download the entire MonoDevelop Solution here: UISearchBarSample MonoDevelop Solution What Does It Do? UISearchBarSample accepts a zip code,… Continue reading Post UISearchBar Values to RESTful API from MonoTouch
UISearchBar BackButton Adventures
In my previous post I wrote about persisting a UISearchBar value so it would be available when pushing the user a new View Controller to display the Search Results. My app has a simple SearchResults UIViewController where some UILabels are populated with various result attributes. Interestingly, the UILabel(s) and other controls maintain their original result… Continue reading UISearchBar BackButton Adventures
Passing UISearchBar Values To Another ViewController in MonoTouch
If you’re migrating your skills from web to mobile development it’s really easy to think in terms of passing user defined values from page to page when entering into a mobile environment. UIViewControllers aren’t web pages though, in the UIViewController world the ViewController is an object so no need to pass anything. Here’s a UISearchBar… Continue reading Passing UISearchBar Values To Another ViewController in MonoTouch
Dismiss the Keyboard When Clicking the UISearchBar Search Button in MonoTouch
Like me, if you’re new to MonoTouch and iOS and you’re coming from a long period in Visual Studio then things are different. If you’ve found this blog post then you know what I mean. If you’re implementing a simple search pattern where ViewController A contains UISearchBar and pushes to ViewController B to display search results… Continue reading Dismiss the Keyboard When Clicking the UISearchBar Search Button in MonoTouch