Category: iPhone

Creating the Facebook Social App 0

Creating the Facebook Social App

Begin by launching Xcode and selecting the options to create a new iPhone iOS application based on the Single View Application template. Enter SocialApp as the product name and class prefix, set the device...

Integration of social networks into iOS 6 0

Integration of social networks into iOS 6

The iOS 6 UIActivityController class Integration of social networks into iOS 6 applications is performed through the use of either the UIActivityViewController class, or the classes of the new Social Framework of the iOS...

Webview resizes automatically to portrait and landscape view in iphone 0

Webview resizes automatically to portrait and landscape view in iphone

contentView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; contentView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight); self.view = contentView; self.view.autoresizesSubviews = YES; CGRect webFrame = [[UIScreen mainScreen] applicationFrame]; webFrame.origin.y -= 20.0; webView = [[UIWebView alloc] initWithFrame:webFrame]; [contentView addSubview:webView];...

Webview resizes automatically to portrait and landscape view in iphone 0

Webview resizes automatically to portrait and landscape view in iphone

contentView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];contentView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);self.view = contentView;self.view.autoresizesSubviews = YES;CGRect webFrame = [[UIScreen mainScreen] applicationFrame];webFrame.origin.y -= 20.0;webView = [[UIWebView alloc] initWithFrame:webFrame];[contentView addSubview:webView]; webView.scalesPageToFit = YES;webView.autoresizesSubviews = YES;webView.autoresizingMask=(UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth);[webView...

programmatically create Email option  in iPhone 0

programmatically create Email option in iPhone

#import <MessageUI/MFMailComposeViewController.h> On iOS 3.0 and later you should use the MFMailComposeViewController class, and the MFMailComposeViewControllerDelegate protocol, that that tucked away in the MessageUI framework.First add the framework and import: #import <MessageUI/MFMailComposeViewController.h>   Then,...

Take Picture from Camera & saved in Photo Gallery by programmatically 1

Take Picture from Camera & saved in Photo Gallery by programmatically

  You would use uiimagepickercontroller for this purpose. First of all, import the MobileCoreServices.framework. Then pull up the camera: if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { NSArray *media = [UIImagePickerController availableMediaTypesForSourceType: UIImagePickerControllerSourceTypeCamera]; if ([media containsObject:(NSString*)kUTTypeImage] == YES) { UIImagePickerController...

How to check for an active Internet Connection on iPhone SDK? 0

How to check for an active Internet Connection on iPhone SDK?

-(void) viewWillAppear:(BOOL)animated { // check for internet connection [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(checkNetworkStatus:) name:kReachabilityChangedNotification object:nil]; internetReachable = [[Reachability reachabilityForInternetConnection] retain]; [internetReachable startNotifier]; // check if a pathway to a random host exists hostReachable = [[Reachability...

JSON Over HTTP On The iPhone 0

JSON Over HTTP On The iPhone

This tutorial provides a step-by-step howto for consuming JSON web services from an iPhone app. When you’ve finished the tutorial you’ll have created a simple, back-of-a-fortune-cookie inspired, “Lucky Numbers” app with a solitary label...

iPhone Programming Tutorial – Intro to SOAP Web Services 0

iPhone Programming Tutorial – Intro to SOAP Web Services

Important Links: [WebService] http://viium.com/WebService/HelloWorld.asmx http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html http://developer.apple.com/documentation/Cocoa/Conceptual/XMLParsing/XMLParsing.html http://www.w3schools.com/soap/default.asp -After creating our XML data / SOAP request, we create a URLRequest. We add HTTP Header values, those values you read from the WebService. -We set the...