Tuesday, July 14, 2015

WatchKit App Architecture / Apple watchkit app development started [4 ]

watchkit app on watch and watchkit extension on iphone. choosing the scene on watchkit app, WatchKit tells the paired iPhone to launch your WatchKit extension and create the objects needed to manage that scene. When the scene is fully configured, it is displayed on Apple...

Apple watchkit app development started [3 ] / Configuring Your Xcode Project for watchkit

Watchkit is extension to you iOS app. To add watchkit to app follow below steps(1.File new target watchkit app which will add wathkitapp and  WatchKit extension to your app.  add a new WatchKit app target, which configures the bundles and initial resources for...

WatchKit App / Glance Interfaces / Local and Remote Notifications / Apple watchkit app development started [2] /

1.WatchKit App:- ( contains only the storyboards and resource files associated with your app’s user interface.) It exists on  the Apple Watch home screen.  A WatchKit app acts as the public face of your app but it works in tandem with your WatchKit extension, which is the brains of the operation.  The WatchKit extension...

Apple watchkit app development started [1]

Apple Watch must have the presence of an iPhone to run third-party . To create a third-party app, you need two separate bundles:  1.a WatchKit app (that runs on Apple Watch)  :- contain storyboard and resources only. Code will be in WatchKit extension running on phone. 2. WatchKit extension (that runs on the user’s iPhone)...

Wednesday, May 6, 2015

1down voteaccepted Have you tried selecting your xcode with xcode-select? xcode-select -switch /Applications/Xcode.app/Contents/Developer In most cases… You could also try to renew the xcodebuild via $sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer $cd /usr/bin $sudo rm xcodebuild $ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild...

Sunday, February 15, 2015

app data loss on version upgrade

When not using Core Data, the only way to preserve user data is to store your database in the user Documents directory as well as the Library directory. Documents NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString...

Wednesday, January 28, 2015

dequeueReusableCellWithIdentifier usage

The purpose of dequeueReusableCellWithIdentifier is to use less memory. If the screen can fit 4 or 5 table cells, then with reuse you only need to have 4 or 5 table cells allocated in memory even if the table has 1000 entries.In the second way there is no reuse. There is no advantage in the second way over just using an array of table cells....

What are the things need to take care while designing app for 2 different resolutions ?

It all depends on your image: If your Image can be stretched, UIImageView will do all the work. If only a part of you image should be stretched you should use this: code - imageView.image = [imageView.image resizableImageWithCapInsets:UIEdgeInsetsMake(top, left, bottom, right)]; If your image can't be stretched you should then do different images...

IPA creation from Xcode

1) Click on project you will see the project settings change the name of bundle identifier for whom we want to make an IPA. 2) Change the signing certificate as per bundle identifier. 3) Edit the scheme and set this set Build configuration for Archive scheme to Release/Distribution [Default Distribution] 4) Select the Build for iOS Device and...

Structure of the IPA

An IPA has a built-in structure for iTunes and AppStore to recognize, The example below shows the structure of an IPA, /Payload/ /Payload/Application.app /iTunesArtwork /iTunesMetadata.plist As shown above, the Payload folder is what contains all the app data. The iTunes Artwork file is a 512×512 pixel PNG image, containing the app's icon for...

IPA ?

An .ipa file is an iPhone application archive file which stores an iPhone app. It is usually encrypted with Apple's FairPlay DRM technology. Each .ipa file is compressed with a binary for the ARM architecture and can only be installed on an iPhone, iPod Touch, or iPad. Files with the .ipa extension can be uncompressed by changing the extension to...

CoreVideo Framework

Core Video provides a pipeline model for digital video in iOS. Partitioning the processing into discrete steps makes it simpler for developers to access and manipulate individual frames without having to worry about translating between data types such as QuickTime. It also provides buffer and buffer pool support for Core Media. Applications...

CFNetworkFRamework

CFNetwork is a framework in the Core Services framework that provides a library of abstractions for network protocols. These abstractions make it easy to perform a variety of network tasks, such as: 1. Working with BSD sockets. 2. Creating encrypted connections using SSL or TLS. 3. Resolving DNS hosts 4. Working with HTTP, authenticating HTTP...

Difference between "strong" and "weak"

Strong means that as long as this property points to an object, that object will not be automatically released. Weak instead, means that the object the property points to, is free to release but only if it sets the property to NUL...

NSOperation

The NSOperation class is an abstract class you use to encapsulate the code and data associated with a single task. Because it is abstract, you do not use this class directly but instead subclass or use one of the system-defined subclasses (NSInvocationOperation or NSBlockOperation) to perform the actual task...

Location Based Services

Location Services allows location-based apps and websites (including Maps, Camera, Safari, and other Apple and third-party apps) to use information from cellular, Wi-Fi1, and Global Positioning System (GPS)2 networks to determine your approximate location...

__block

When variable is marked with __block, the modifications done inside the block are also visible outside of it...

Block

Block objects are a C-level syntactic and runtime feature. They are similar to standard C functions, but in addition to executable code they may also contain variable bindings to automatic (stack) or managed (heap) memory. You can use blocks to compose function expressions that can be passed to API, optionally stored, and used by multiple threads....

layoutSubviews

layoutSubviews is a method that is called automatically during view size changes. It can be used by a custom view to perform additional manual changes above and beyond any autoresizing behavior...

Autolayout

Auto layouts introduced in iOS6 with which we can support different screen resolution. Also it makes it easier with internationalization we don't need different xib or storyboard for every language...

Grand Central Dispatch

Grand Central Dispatch (GCD) comprises language features, runtime libraries, and system enhancements that provide systemic, comprehensive improvements to the support for concurrent code execution on multicore hardware in iOS and OS X...

iOS Design Patterns

A design pattern is a template for a design that solves a general, recurring problem in a particular context. It is a tool of abstraction that is useful in fields like architecture and engineering as well as software development. a. Abstract Factory Pattern b. Adaptor Pattern c. Object Modeling Pattern d. Chain of Responsibility Pattern e....

View's life cycle

Creation 1a -> initWithCoder for initializing view via Storyboard 1b -> initWithNibName for initializing view via Nib file 1c -> init if we do not use none of the above 2 methods and use simple View init method to initialize View. 2   -> loadView 3   -> viewDidLoad 4   -> viewWillAppear 5   ->...

JSON and XML difference and Usage

1. XML is easier to understand than JSON 2. XML is markup language so it is used for hierachiecal element which can not be done in JSON 3. JSON is very simple and can easily be used for text format objects and its serialization. 4. XML used too much bandwidth than JSON 5. JSON is used widely on Web coz its easier to parse from JavaScript...

About

Powered by Blogger.