Authormayur.kore

Drop Down Custom View For iPhone applications.

D

Wanted to have a drop-down view like we have in html element, allows user to select one option form list of option. Have created sample application that demonstrates the use of this custom view. Sample project available to download athttp://code.google.com/p/dropdowndemo/downloads/list. Adding instruction how to use view in you application. Import QuartzCore.framework in your application...

How to use inbuilt Facebook/Twitter API in iOS6.

H

You need to add Social.framework in your project. Add to your file following #import “Social/Social.h”  You can create 3 type of service: SLServiceTypeTwitter; SLServiceTypeFacebook; SLServiceTypeSinaWeibo; I have created service of Facebook. SLComposeViewController *fbController=[SLComposeViewControllercomposeViewControllerForServiceType:SLServiceTypeFacebook];...

How to read from CSV file in iPhone code ?

H

  So you exported your data as csv file, and now say you want to make your piechart reading the data from csv file. Then you need to read the csv file. Well, its simple !   So our csv file looks like following and we will read say 1st column of each line.                         We will call method with column value 0, you can...

Save NSDate in CoreData

S

1. In your model file.Create an entity MyDate with attribute datestring of datatype date(select it from dropdown). 2. Save your date //Create date from the string    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];    [dateFormatter setDateFormat:@”dd-MM-yyyy”];    NSDate *date=[dateFormatter dateFromString:dateString_];    [dateFormatter release];   ...

Launch the app store app from your application

L

  Step 1: Create an empty iPhone application with and add the UIViewController subclass to it. Step 2: Create a view just like the one given below and the add the view of this view controller into the iPhone window. Step 3: Create a function for the button and this function will contain the code for launching the app store application of the iOS device from your application. So declare a...

Category