Posts

Showing posts from March 10, 2013

Difference between iOS5 and iOS4?

Camera Service - In iOS 4 : Photos could only be taken by the Camera app, from the Home screen, with the slide-to-zoom technology. However, there were no exposure settings available and the photos could not be edited on the device itself. In iOS 5 : The camera icon is now found on the lock screen and the volume up button is used to take photos. Other features include pinch-to-zoom and tapping to set exposure. The photos can be edited on the device itself. Web Navigation - In iOS 4 : Here you needed to tap the screen to fill the screen with text and no Read Later function was available. In addition, browsing was separated into pages or windows. In iOS 5 : The new Safari reader in iOS 5 fills the screen with the text in just one click. A new Reading List allows articles to be bookmarked for later use and browsing can now be done on separate tabs. Game Center - In iOS 4 : The Game Center in iOS 4 allowed mobile-to-mobile gaming but there was a catch - the a

What is Cocoa?

Cocoa is an application environment for both the Mac OS X operating system and iOS.  It consists of a suite of object-oriented software libraries, a runtime system, and an integrated development environment. Carbon is an alternative environment in Mac OS X, but it is a compatibility framework with procedural programmatic interfaces intended to support existing Mac OS X code bases.

Blocks in iPhone?

As a programmer, you’re used to data types like   String , which is a variable type for text. We also are aware of things like   int ,   float , and   double , which are variable types to store numeric values. Finally, we know about things like   NSObject , which is a foundation level class that allows us to bundle various collections of both data types and methods (a.k.a. functions). Blocks bring something significantly different to the table, providing a data type for executable code storage. If that doesn’t make sense to you, don’t worry: blocks can be tough. Their purpose and function becomes much more clear upon seeing examples of their use. One of the most popular types of patterns in which blocks are used is for providing “completion blocks” to objects who perform some kind of asynchronous operation. The following is an example of a method signature provided in my UIView that takes advantage of accepting a completion block from a user: + (void)animateWithDuration:(NSTimeInt