Posts

Push Notifications in iOS 10

Image
The  UserNotifications framework (UserNotifications.framework) supports the delivery and handling of local and remote notifications.( The new framework introduced with iOS 10 SDK. ) //*Steps for implement code to handle push notifications in iOS 10 *Import UserNotifications.framework in your AppDelegate file #import  < UserNotifications/UserNotifications.h > **Add UNUserNotificationCenterDelegate. #import <UserNotifications/UserNotifications.h> @interface AppDelegate : UIResponder <UIApplicationDelegate, UNUserNotificationCenterDelegate> ** Register for push notification Before registration check the version of iOS and then based on versions do the code. For iOS 7 code was different, fro iOS 8 & 9 code was different and again for iOS 10 code is different. As per my opinion you have to set the deployment target to iOS 8 or iOS 9 and later.  Define constant for version check : #import "AppDelegate.h" #define SYSTEM...

Application Upgrade Process Into Appstore

Image
Step 1:Change Your URL From Test To Secure(Live). Step 2:Go to AppDelegate          Uncomment LogFile,If You Comment it(Application Works Fast).         Change The Version Number. Step 3:Go to Your Application Target.Changes as Follows...        Change Display Name As You Want.        Change Bundle Identifier.                Change Version And Build                Go to Deployment Info,Change The Device as You Want(if  Your Application is Both For iPad and iPhone Then Select Universal).                You See The Build Settings,Go into Build Settings And At   Signing Point ,change The Code Signing identity And  Provisioning Profile Certificates And Development Team Also. Step 4:Go to Your Project And Make Sure The Signing Point in Build Settings in Target And Signi...

Progress Indicators (Loading...)

Image
When content is loading, a blank or static screen can make it seem like your app is frozen, resulting in confusion and frustration, and potentially causing people to leave your app. *First Add MBProgressHUD From GitHub.Below is The Link. https://www.google.co.in/urlsa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiMx9mwy4vWAhWCqY8KHXbCBj0QFgglMAA&url=https%3A%2F%2Fgithub.com%2Fjdg%2FMBProgressHUD&usg=AFQjCNFFF4StmFHOz4VYmfh7-GU-5HW9-A *After Adding MBProgressHUD.h and MBProgressHUD.m Files To Project, Do the Following Procedure. #import "MBProgressHUD.h" @interface  AppAppDelegate : NSObject < UIApplicationDelegate , MBProgressHUDDelegate , ProductListDelegate , NSXMLParserDelegate , UIPopoverControllerDelegate , UIAlertViewDelegate , UIPrintInteractionControllerDelegate , UIWebViewDelegate > (Add Delegate Methods). @property ( nonatomic , retain ) MBProgressHU...

JSON Serializatioon

Image
- ( void )CallWebservice {     NSString *final_webserviceUrl = [ NSString stringWithFormat : @"%@Your URL" ];     NSString *parameters = nil ;          parameters = [ NSString stringWithFormat : @"Parameter1=%@&Parameter2=%@" , FirstName , LastName ];          NSURL *url = [ NSURL URLWithString :final_webserviceUrl];     NSMutableURLRequest *request = [ NSMutableURLRequest requestWithURL :url];          [request setHTTPMethod : @"POST" ];     [request setValue : @"application/json" forHTTPHeaderField : @"Accept" ];     [request setValue : @"application/x-www-form-urlencoded" forHTTPHeaderField : @"Content-Type" ];          NSData *requestData = [ NSData dataWithBytes :[parameters UTF8String ] length :[parameters length ]];     [request setHTTPBody : requestData];          NSError *errorRe...

Load Places Automatically By Using Google Maps

Image
Loading Places By Typing............. *First Install Pods. *After Installing Pods, Proceed For Below #import  <GoogleMaps/GoogleMaps.h> #pragma mark- Google Api - ( void )viewController:( GMSAutocompleteViewController  *)viewController didAutocompleteWithPlace:( GMSPlace  *)place {           txtState . text = @"" ;      txtZip . text = @"" ;      txtCity . text = @"" ;      //IPHONE      _stateTFIPhone . text = @"" ;      _zipTFIPhone . text = @"" ;      _cityTFIPhone . text = @"" ;           // Do something with the selected place.      NSLog ( @"Place name %@" , place. name );      NSLog ( @"Place address %@" , place. formattedAddress );      NSLog ( @"Place attributions %@" , place. attributions . string );      NSLog ( @"lat and log%f" , place. coordin...