iPhone Application

Tuesday, 5 February 2013

if create variable in AppDelegate and use any class

//....we write this code top of the class
#define appDel ((AppDelegate*)[UIApplication sharedApplication].delegate)
 
or
AppDelegate *appDelegate = (AppDelegate*) [[UIApplication sharedApplication] delegate];

Posted by Unknown at 14:07
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2013 (67)
    • ►  April (11)
    • ►  March (23)
    • ▼  February (13)
      • Use Compiler Flags to Enable and Disable ARC
      • Finding Your iPhone’s Unique Identifier (UDID)
      • Step-by-Step Guide to Publishing in the Apple App ...
      • Step-by-Step Guide to Publishing in the Apple App ...
      • How to Create a Provisioning Profile for iPhone
      • InterView Question's
      • Blogs Related to iPhone Development
      • id vs NSObject
      • Explanation of strong and weak.
      • Age between two dates for age calculator
      • How to restrict alpha character in phone UITextFie...
      • if create variable in AppDelegate and use any class
      • how to hide the keyboard when empty area is touche...
    • ►  January (20)

About Me

Unknown
View my complete profile
Picture Window theme. Powered by Blogger.