19
2011
Customizing UINavigationbar
Before IOS 5.0, UINavigationbar can be customized by using ‘Category’. On IOS 5.0 onwards, customizing with ‘category’ doesn’t work anymore, instead we can use a new API called: – (void)setBackgroundImage:(UIImage *)backgroundImage forBarMetrics:(UIBarMetrics)barMetrics In order to customize UINavagationBar for both IOS 5.0 and below IOS 5.0 devices, we have to prepare these two methods: 1. Write a category for UINavigationBar (for IOS 4.3 and below) 2. Check if device is IOS 5.0 and above, use – [...]
7
2011
Modify XCode 4.2 Project Template
In this post I’ll show you how to modify the XCode 4.2 Project Template. When we create a new project in XCode, we can choose which project template to use. However, some project templates provide an options to use Core Data while some not. To enable the Core Data option in a project template, we need to modify the ‘TemplateInfo.plist’ which you can find at: Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/Application/(Application Type).xctemplate/TemplateInfo.plist For example, by default my Tabbed Application [...]
6
2011
QRCode Reader With ZXing Library
ZXing is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. In this tutorial, Im going to show you how to make a small modification to the library so that the QRCode reader can read from image as well instead of just camera. First of all, download the ZXing-1.7.zip. After you unzipped it, look for the folder ‘iphone’ -> ‘Barcodes’, this is the sample project we will be [...]
3
2011
Parsing XML in Objective-C with TouchXML
There’s a lot of libraries available for parsing XML in Objective-C, one of them is TouchXML. Here’s a sample source code on how to use TouchXML to parse XML data. You can get the TouchXML here. TouchXML is using XPath, if you never heard of XPath, read it more here.
2
2011
Simulate A Location With XCode 4.2
Have a Location Base app? Wonder how to test your app in simulator without different locations? Well, in XCode 4.2, you can do that in your simulator. In your XCode, just go to ‘Product’ -> ‘Debug’ -> ‘Simulate Location’ and choose the available locations.
2
2011
Get Longitude and Latitude From Google Map
By default, the coordinate will not be shown, in order to show the coordinate. Here’s how you can get the latitude and longitude of a location from Google Map. Step 1, enter your address and search for the map Step 2, go to setting on the top right corner of your browser Step 3, go to ‘Maps Labs’ Step 4, look for ‘LatLng Tool Tip’, set to enable Step 5, go back to your map, [...]
Ads
Facebook Page
Recent Comments
Categories
- Apache (1)
- Apps (1)
- Blog (18)
- IOS (17)
- IOS Library (4)
- iPhone Tutorial (15)
- Javascript (1)
- Node.js (1)
- Twitter (1)


An article by



