Thursday, September 20, 2012

Use of NSNotificationCenter object to post and observe notification broadcasted within a program.


NSNotificationCenter is a class which helps to broadcast information within a program. Once the objects is register as a observer of a notification with a particular "notification_name' then every time the notification is posted with "notification_name" by any object, the active observer of that notification is notified. This simple post will show you how you can make use of NSNotificationCenter in your application.

Monday, September 17, 2012

Creating and implementing a custom method with dynamic number of arguments.

As you have noticed, there are methods which can take dynamic numbers of arguments. eg initWithObejcts:obj1,obj2,nil. This post will show you how you can create a custom method with dynamic numbers of arguments.

Tuesday, September 11, 2012

Using InApps Email in your iOS application in Xcode

This post will show you how you can include in-apps email features in your iOS application. Apple has provided its developers with a framework called MessageUI.framework using which developers can include in-apps email features in their iOS applications.  This post will show how you can use this framework to send emails from your apps.

Monday, September 10, 2012

Defining a delegate protocol for a custom class and implementing it in Objective-C


Delegate is a protocol by which an object sends message to another object when an event is about to occur or has occurred. It is a way by which an implemented object callbacks an implementing object. To make it simple,  delegate enables number of objects to communicate with each other thus make coding more efficient. This simple post will show you an example how to define a delegate protocol and implement it.

Thursday, September 6, 2012

Wednesday, September 5, 2012

Tuesday, September 4, 2012

Validating the entered email-address/id

Many applications need to validate the email address entered by their users. This post will show how to validate the email address/id in Xcode without using any sort of library.