Pages

Subscribe:

Sunday, February 27, 2011

iPhone SDK Tutorial - How to get UDID of iPhone?

How to get the UDID of the iPhone using code?




A basic example to get the UDID of the iphone using iphone sdk.
The screen shot shows the output from suimulator. But will work in device too.

Download the code here

Wednesday, February 2, 2011

iphone SDK Tutorial - Web View Sample Code


How to use the web view in iPhone ? How to load a web page in iphone web view ? Following example shows how to open a web page in web view.





Download the source code here

iphone SDK Tutorial - Store Data in Property List


How to store the data in iPhone PList ? Following example shows how to store 3 values in PList. If you close the app and open it again, then the stored data will be shown in the fields. Deleting the app and deploying it will erase the data in plist.





Download the source code here

iphone SDK Tutorial - ActionSheet Sample Code


How to open an actionsheet in iphone ? How to detect the button clicked in actionsheet ? This sample app shows how to open an actionsheet and do different actions based on the clicked button.

Download the source code here



iphone SDK Tutorail - Tracking the field being edited


How to track the current field being edited in iphone SDK?



Download the source code here

iphone SDK Tutorial - Sample Code for Switch Control


How to use switch control in iphone ? This example shows basic usage of switch. Bonus will be calculated based on the selection.



Download the source code here

iphone SDK Tutorial - Sample Code to Add Two Numbers


 A basic example to learn iphone sdk programming. This sample reminds me the programming in school - adding two numbers....!! :)



Download the source code here

iphone SDK Tutorial - Timer Sample Code




How to use timer in iphone sdk ? Sample code which demonstrates the iphone timer shows time and elapsed running time of timer.



Download the source code here

iphone SDK Tutorial - Dynamic Image Sample Code



How to dynamically load images in imageview ? How to change the size of image dynamically in iphone ? This example shows a simple slide show with imageview.



Download the source code here

iphone SDK Tutorial - Dynamic Buttons - Scroll View Sample

How to create dynamic buttons using iphone sdk?
How to handle the click event of dynamic button in iphone sdk ?


A sample iphone project demonstrates how to create dynamic buttons using iphone code and shows the use of scrolls view.



Download the source code here

iphone SDK Tutorial - Getting Screen Coordinates

This sample application demonstrates how to get the screen coordinates. After getting screen points, you can do what ever action you want to do based on the values. This example places a ball in the clicked position.



Download source code here

iPhone SDK Tutorial - Sample Code to Play Audio File

How to play audio file in iphone ? Here is a sample app to play the embedded audio file.

Download the source code



iPhone SDK Tutorial - Picker Sample Code

How to use picker in iphone code ? How to get the selected value of picker in code ?



Download the source code here

iPhone SDK Tutorial - Moving Balls

How to move the image in iphone sdk ?  Click add button to add a ball. Change the speed.



Download the source code here

iPhone SDK Tutorial - Using Alert Views

How to use alert views in iphone SDK ? How to detect the clicked button in UIAlertView ?



Download the source code here

iPhone SDK Tutorial - Detecting Tap in Code

How to detect the tap in iphone code?



Download the source code here

iPhone SDK Tutorial - Slider Sample Code

How to use slider in iphone code ?



Download the source code here

iPhone SDK Tutorial - Array Operations Sample Code

How to do simple array operation in iPhone ? Following sample demonstrates array operations in objective c.



Download the source code here