Links To iTunes App Store

See http://stackoverflow.com/questions/433907/how-to-link-to-apps-on-the-app-store To send customers to a specific application via the browser: http://itunes.com/apps/appname To open an app in the app store (e.g. for a rate this app link) use: itms-apps://itunes.com/apps/appname For app names with spaces simply remove the spaces.

Read More

Create Email

Add The MessageUI.framework To Your Project In Xcode 4 select your project select the target go to the ‘build phases’ tab open the ‘Link binary with Libraries’ disclosure triangle Use the + to add the MessageUI.framework Add to #ViewController.m #import <MessageUI/MessageUI.h> @interface ViewReminderViewController_iPhone : UIViewController <MFMailComposeViewControllerDelegate> { Your Send Email Function //********************************** //********************************** //********** EMAIL […]

Read More

Create Simple Single View For An Application

Create Simple Single View For An Application Create the application Create view file Menu > File > New > File > iOS > Cocao Touch > Objective-C class > Next Subclass Of: UIViewControllerSubClass Name it ("#ViewController", ending with "_iPhone" and "_iPad" for multi device apps, is a good naming convention) Subclass of > UIViewController (or […]

Read More

Creating Local Notifications

Local notifications allow an application that isn’t running in the foreground to let its users know it has something to tell them. Local notifications are an instance of UILocalNotification.  Available Options: Scheduled time (including rescheduling if required). Notification type – The alert message, the title of the action button, the application icon badge number, and […]

Read More

Communicating with Bluetooth Devices

The External Accessory framework is designed to allow iOS applications to communicate only with hardware accessories that are developed under Apple’s MFi licensee program. MFi compliant accessories can be implemented as wired devices or as wireless devices using Bluetooth as the communication channel. Either way, an application that uses the External Accessory framework will not […]

Read More

Play Video In Movie Player

Good resources http://mobile.tutsplus.com/tutorials/iphone/mediaplayer-framework_mpmovieplayercontroller_ios4/ Playing A Movie File Add MediaPlayer.framework in the Frameworks folder Select-> Frameworks folder -> Add ->Existing Frameworks -> then select MediaPlayer.framework. In your .h file #import <UIKit/UIKit.h> #import <MediaPlayer/MediaPlayer.h> //In @interface: MPMoviePlayerController *moviePlayerController; In your .m file //*************************************** //*************************************** //********** PLAY MEDIA BUTTON ********** //*************************************** //*************************************** – (IBAction)PlayMediaButton:(id)sender { NSString *path; NSArray […]

Read More

Using NSMutableString

Mutable vs. Immutable Strings NSMutableString – Should be used when you are physically changing the value of an existing string, without completely discarding the old value (i.e. adding a character to the beginning or end, modifying a character in the middle etc). NSString – Can never be changed after it has been created, only overwritten […]

Read More

Create Unique ID

//Create unique ID CFUUIDRef newUniqueId = CFUUIDCreate(kCFAllocatorDefault); CFStringRef newUniqueIdString = CFUUIDCreateString(kCFAllocatorDefault, newUniqueId); MyString = [MyString stringByAppendingPathComponent:(NSString *)newUniqueIdString]; CFRelease(newUniqueId); CFRelease(newUniqueIdString);

Read More

Create Unique Filename

NSString *filePath; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); path = [[paths objectAtIndex:0] stringByAppendingPathComponent:@”SomeDirectoryName”]; //Create unique filename CFUUIDRef newUniqueId = CFUUIDCreate(kCFAllocatorDefault); CFStringRef newUniqueIdString = CFUUIDCreateString(kCFAllocatorDefault, newUniqueId); path = [path stringByAppendingPathComponent:(NSString *)newUniqueIdString]; path = [path stringByAppendingPathExtension: @”MOV”]; CFRelease(newUniqueId); CFRelease(newUniqueIdString);

Read More