If your app indicates that it is optimized for the iPhone 6, at least one 4.7-inch screenshot is required. Up to four additional screenshots can be uploaded. You can rearrange the screenshots when you create or edit the iTunes Connect record.

Screenshot requirements are:

72 dpi, RGB, flattened, no transparency

High-quality JPEG or PNG image file format

750 x 1334 pixels for hi-res portrait

1334 x 750 pixels for hi-res landscape

Locked

5.5-inch Retina screenshot

Screenshot requirements are:

72 dpi, RGB, flattened, no transparency

High-quality JPEG or PNG image file format

1242 x 2208 pixels for hi-res portrait

2208 x 1242 pixels for hi-res landscape

Locked

iPad Screenshots(required if app runs on iPad)

If your build indicates that your app runs on iPad, you’re required to upload at least one iPad screenshot.

Up to four additional screenshots can be uploaded. You can rearrange the screenshots when you create or edit the iTunes Connect record.

Mac (OS X) Screenshots

One OS X screenshot is required for Mac apps; up to four additional screenshots can be uploaded. Screenshots appear on the store in the order they were uploaded in iTunes Connect.

Device

Specifications

Editable

Mac Screenshots OS X only (required)

Screenshot requirements are:

72 dpi, RGB, flattened, no transparency

High-quality JPEG or PNG image file format in the RGB color space

16:10 aspect ratio

One of the following sizes:

1280 x 800 pixels

1440 x 900 pixels

2560 x 1600 pixels

2880 x 1800 pixels

Locked

tvOS Screenshots

If your app has a tvOS platform, at least one screenshot is required. Up to four additional screenshots can be uploaded. You can rearrange the screenshots when you create or edit the iTunes Connect record.

Device

Specifications

Editable

tvOS Screenshots

Screenshot requirements are:

72 dpi, RGB, flattened, no transparency

High-quality JPEG or PNG image file format

1920 X 1080

Locked

App Preview Properties

Uploads must be done using Safari and OS X 10.10, and only one localization is accepted. App previews must disclose In-App Purchases and may contain no ads, no platform logos, no pricing, and no timelines.

App preview properties are locked, and so they can only be edited when the app is in an editable state.

Sunday, December 6, 2015

To make navigation bar “Back” button to work according to your need. Use one of the techniques below –

1. Replace the “Back” button with a new button. The only problem with this technique is that the new button does not appear like the cornered back button, but it appears square. The positing and size remains the same but design of the button changes to square.

Add the following code to “viewDidLoad” method of your view controller file –

Thursday, December 3, 2015

A Tuple in Swift is a neat way to store multiple values in a single value. You will probably come across tuples in a return function or class. So a tuple is basically a way to represent a collection of values that are closely linked to each other.

So here is an example of a Tuple in Swift:

1

var player = (“Mark”, 999, true)

The ( ) lets Swift know that you are creating a Tuple. So you would add your values into the parenthesise Tuple as above and separate them with a comma.

Like an array you can return the value using the equivalent index value like so:

1
2

Player.0 // = Mark
Player.1 // = 999

Remember that the index value starts at 0 in arrays and Tuples

As you can see, this is not a very descriptive way to go about it. Another way to get this information and a very cool way I must say is to assign them names. This can be done like this:

1

var player = (name: “Mark”, score: 999, isGoldMember: true)

Now you can get them out of the Tuple like so:

1

Player.name // etc …

Lets say that you’re getting a Tuple back from a function or some other return and you want to decompose it by turning each of the parts into variables. You can do this easily by typing

1

var (name,score,isGoldMember) = player

Now you can just type put the variable name specified here, like this:

1
2
3

Name
Score
isGoldMember

Finally and quite possibly the coolest thing about this feature is that if you don’t want to assign a value you can just put an underscore in its place like so:

1

var (_, name, _)

There you have it. Go and play with Swift Tuples and see how awesome they are for yourselves.

Sunday, March 29, 2015

A.iOS Simulator can be used to test mobile
applications. Xcode tool that comes along with iOS SDK includes Xcode
IDE as well as the iOS Simulator. Xcode also includes all required tools and
frameworks for building iOS apps. However, it is strongly recommended to
test the app on the real device before publishing it.

Q. Does iOS
support multitasking?

A.iOS 4 and above supports multi-tasking and allows
apps to remain in the background until they are launched again or until they
are terminated.

Q. What are the
tools required to develop iOS applications?

A. iOS
development requires Intel-based Macintosh computer and iOS SDK. Current Mac os
version is 10.11, Xcode version 7.1.1 iOS Version 9.1

Q. Name the
framework that is used to construct application’s user interface for iOS.

Q. Name the
application thread from where UIKit classes should be used?

A.UIKit classes should be used only from an
application’s main thread.

Note: The derived classes of UIResponder and the classes which
manipulate application’s user interface should be used from application’s main
thread.

Q. Why an app on iOS device behaves differently
when running in foreground than in background?

A. An application
behaves differently when running in foreground than in background because of
the limitation of resources on iOS devices.

Q. How can an
operating system improve battery life while running an app?

A. An app is
notified whenever the operating system moves the apps between foreground and
background. The operating system improves battery life while it
bounds what your app can do in the background. This also improves the user
experience with foreground app.

Q. When an app is
said to be in active state?

A. An app is
said to be in active state when it is running in foreground and is receiving
events.

Q. An app is
loaded into memory but is not executing any code. In which state will it be in?

A. An app is
said to be in suspended state when it is still in memory but is not executing
any code.

Q. How can you respond
to state transitions on your app?

A. On state
transitions can be responded to state changes in an appropriate way by
calling corresponding methods on app's delegate object.

For
example: applicationDidBecomeActive method can be used to prepare to run
as the foreground app.

applicationDidEnterBackground
method can be used to execute some code when app is running in the background
and may be suspended at any time.

applicationWillEnterForeground
method can be used to execute some code when your app is moving out of the
background

applicationWillTerminate
method is called when your app is being terminated.

Q. List down
app's state transitions when it gets launched.

A. Before the
launch of an app, it is said to be in not running state.

When an app is launched,
it moves to the active or background state, after transitioning briefly through
the inactive state.

Q. Who calls the
main function of you app during the app launch cycle?

A. During app
launching, the system creates a main thread for the app and calls the app’s
main function on that main thread. The Xcode project's default main function
hands over control to the UIKit framework, which takes care of
initializing the app before it is run.

Q. What is the use of controller object
UIApplication?

A. Controller object
UIApplication is used without subclassing to manage the application event
loop.

It coordinates other
high-level app behaviors.

It works along with
the app delegate object which contains app-level logic.

Q. Which object
is create by UIApplicationMain function at app launch time?

A. The app delegate
object is created by UIApplicationMain function at app launch time. The app
delegate object's main job is to handle state transitions within the app.

Q. How is the app
delegate is declared by Xcode project templates?

A. App delegate is
declared as a subclass of UIResponder by Xcode project templates.

Q. What happens
if IApplication object does not handle an event?

A. In such case the
event will be dispatched to your app delegate for processing.

Q. Which app
specific objects store the app's content?

A. Data model
objects are app specific objects and store app’s content. Apps can also use
document objects to manage some or all of their data model objects.

Q. Are document
objects required for an application? What does they offer?

A. Document objects
are not required but are very useful in grouping data that belongs in a single
file or file package.

Q. Which object
manage the presentation of app's content on the screen?

A. View controller
objects takes care of the presentation of app's content on the screen. A view
controller is used to manage a single view along with the collection of
subviews. It makes its views visible by installing them in the app’s window.

Q. Which is the
super class of all view controller objects?

A. UIViewController
class. The functionality for loading views, presenting them, rotating them in
response to device rotations, and several other standard system behaviors are
provided by UIViewController class.

Q. How do you
change the content of your app in order to change the views displayed in the
corresponding window?

A. To change the
content of your app, you use a view controller to change the views displayed in
the corresponding window. Remember, window itself is never replaced.

Q. Define view
object.

A. Views along with
controls are used to provide visual representation of the app content. View is
an object that draws content in a designated rectangular area and it responds
to events within that area.

Q. What are layer
objects and what do they represent?

A. Layer objects are
data objects which represent visual content. Layer objects are used by views to
render their content. Custom layer objects can also be added to the interface
to implement complex animations and other types of sophisticated visual
effects.

Q. Difference
between Static & Dynamic TableView

Static cells are
basically a "what you see is what you get" in Interface Builder. What
you put into theUITableView is what you'll see when you run the app.

Dynamic prototypes, instead, allow you to lay out cells that you can
re-use by calling:

With this, you
determine the number of cells using the delegate methods in the UITableViewController.
You can have multiple prototype cells and determine which to load depending on
index path.

we can use segues with both.

Q.What is NSUserDefaults? What type of data can
we store there?

NSUserDefaults is a simple property list (aka plist) where an app can
store simple data. While there is no limit to its size (besides the device’s
own limits), you should not store a large amount of data here. The file is
written and read atomically (as a whole), so the more data that is in there,
the longer that will take

iOS Enterprise Program - Can distribute apps
only within enterprise not to App Store. No limit on number of devices you can
distribute your apps to. Can restrict access where member can request developer
certificate, admins approve it. Cannot distribute apps via AppStore.

Retain counts are
the way in which memory is managed in Objective-C. When you create an object,
it has a retain count of 1. When you send an object a retain message, its
retain count is incremented by 1. When you send an object a release message,
its retain count is decremented by 1. When you send an object a autorelease
message, its retain count is decremented by 1 at some stage in the future. If
an objectʼs retain count is reduced to 0, it is deallocated.