Monday, October 7, 2013

What's New in XCode 5 Part 1

What's New in XCode 5 Part 1

As we all know that iOS 7 has been the major release of iOS and it has brought us developers so many cool features. iOS 7 What's a new link to know more about it.

iOS 7 release brings the release of iOS 7 SDK and XCode 5, iOS 7 SDK and Xcode 5 download is available. Once you download and Installed XCode 5 you must be wondering now what's new in this... Right? That's what we are going to discuss in this very Blog.. and of course as IDE XCode do a lot of things and you know being a programmer it won't be easy to explain all the things in place. :) So I will be writing series of blogs to cover the features and this is the Beginning.. :) 

So What's New in XCode 5? Here are features:

Sunday, October 6, 2013

TypeCasting objects in Objective C

Type Casting

Type Casting a process converting one type of object to another type of object. Every language a semantics of TypeCasting. Today we will discuss about type casting in Objective C.

E.g We have two class BaseClass and DerivedClass.



@interface BaseClass : NSObject
@property (nonatomic,strong) NSString *baseProperty;
-(void)baseMethod;
@end

Thursday, October 3, 2013

Memory Management in Objective C

In this topic, we will discuss Reference Counting and some other memory management topics related to Objective C.

Reference Counting


Reference Counting is a technique of storing a number of reference to an Object at any given state. As soon as the reference count goes to the Zero object is released from the memory. It is important from the development point of view of application where memory is critical and to maintain responsiveness. It is the most simple algorithm for memory management. 

Objective C provides two methods of Memory Management

  1. MRR - Manual Retain-Release: In this method, you explicitly keep track of the Objects you own. 
  2. ARC - Automatic Reference Counting uses the same algorithm of MRR, However, while using ARC Compiler insert appropriate statements in your code at compile time. 

Thursday, September 26, 2013

What's new in iOS 7?

iOS 7 Major release of iOS. It has come up with a lot of things for users and the developers. UI has been completely redesigned and also come with a new animation system for creating games. 

I will list what's new in iOS 7.

  • What's new in User Interface

    • UI Redesign - UI has been completely redesigning and throughout the system, the focus has been on the functionality and making sure that things are easier than before. Introduction of the Control Center, Navigation around the settings menus with the swipe, Updated Notification Center, Accessibility updates, and Siri has just become more helpful than before.  

Common Objective C coding errors

I am going to introduce the common coding errors made while programming in Objecive C language.

1. Declaring the const char * strings. Yes this the common coding error while programming, You almost never want to declare a const char * string, e.g. see the below line of code.



self.selectedLabel.text = [NSString stringWithFormat:@"Selected : %d", self.selectedCount];