Skip to main content

Posts

Showing posts from December, 2012

iOS Dev: Orientation Notification

 Here Code: /********************************* Notification For Orientation ***************************************/ #pragma mark - Orientation Notification #pragma mark callNotification -( void )changeOrientationsNotification{          [[ UIDevice   currentDevice ]  beginGeneratingDeviceOrientationNotifications ]; [[ NSNotificationCenter   defaultCenter ]  addObserver :  self                                               selector :  @selector (orientationWillChange:)                                                   name :  UIApplicationWillChangeStatusBarOrientationNotification                ...

iOS Dev: How to install GCC Compiler on Mac OS-X?

How to install GCC Compiler on Mac OS-X? Problem Description: Often times, you need c or gcc compiler to compile open source projects in Mac OS X. The problem is Mac OS X doesn’t install the gcc compiler by default. If you try to install or compile some projects that required c/gcc compiler, following errors message will be logged : configure: error: C compiler cannot create executables  configure: error: no acceptable C compiler found in $PATH In terminal, type “ gcc “, you will get message “command not found”. $ gcc -bash: gcc : command not found Solution: First Way --> To install gcc compiler on Mac OS X, you need to download and install “ Command Line Tools for Xcode ”, which is available in Apple’s developer page. See following steps : Register Apple Developer Account : Go to Apple Developer Login  page and register your account or login with our existing account details. Command Line Tools for XCODE : In Apple developer page, “ De...

iOS Dev: How to create .ipa file using XCODE

How to create .ipa file using Xcode ? Here your answer:     First question is that which version of XCODE you are using, Procedure for Xcode 4.3 and above : As of Xcode 4.3, there is no option of Share in organizer.  1.First of all,choose your device as  IOS Device  in  Scheme  near Breakpoint tab in Xcode. 2.In Xcode menu, Product->Clean  and  Product-->build  your application. 3.If the provisioning certificate is not valid,it will lead to build failed with an error.If so you have to change it to a valid certificate through your  project->build  settings.Else if build succeeded just leave this step. 4.Then select Product->archive ,it will create an archive file in Organiser->archives and open it up for you after archive finished. 5. Choose Distribute and then select the option for save as enterprise or adhoc application. 6. Saved it your .ipa file in your desktop. if you are u...