The old blog · Tag
snippets
-
Change background of a UITableViewCell
Tweet I was asked this question by a co-worker on how to do this. My first answer was when you init the cell just set the backgroundColor but that did not work at all. If you followed my other tutorials and have a …
-
Post JSON to a webservice
Tweet Make sure you have JSON Framework installed first. This is a continuation of UIImageView in a custom cell Here is a simple little code snippet on how to post some JSON to a webservice. NSString *requestString = …
-
UIBarButtonItem with a custom view
Tweet The main project I am doing for Photoblog is an application to show all the latest entries and such. So I call a web service using JSON and it gives me the data I need. Now there might be a few second delay in …
-
Append to a NSString
Tweet I was working on appending to some strings and there is a way to do it with NSString but you are better off working with NSMutableString instead. I have a feeling doing it with NSString, if not done correctly, …
-
Using NSUserDefaults
Tweet This will go over a quick run through of using NSUserDefaults. This is the class to use to save user preferences for example. It is pretty straight forward. Saving Data This is how you save data. NSUserDefaults …
-
Create a text input
Tweet So here is a quick no real code tutorial. This is another thing that took me a bit to figure out. For this example, I am putting a text input in a TableView. So here is my class declaration. @interface …