Posts

Showing posts from September, 2017

What's New in Xcode 8.3?

Image
Xcode 8.3 includes Swift 3.1 which is intended to be source compatible with Swift 3.0. Constrained extensions allow same-type constraints between generic parameters and concrete types. For example, the following code defines an extension on Array with Int elements:       extension ArrayName where Element == int{} The Swift compiler now raises an error for modifications of a let  property or variable of protocol type after initialization.  Swift 2.3 Deprecation Xcode 8.3 beta 2 no longer supports Swift 2.3. Please migrate your projects containing Swift 2.3 code to Swift 3 syntax by opening the project and choosing Edit > Convert > To Current Swift Syntax. Other Deprecations and Removal Notices The Automation instrument has been removed from Instruments. Use Xcode’s UI Testing in its place. Organizer The Xcode Organizer now supports exporting tvOS apps for Enterprise distribution. Testing Added the XCUISiriService class to XCTest for writing te...

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...