CategoryiOS

Loading images in background (Lazy Loading).

L

Some times we need to take images from server and on clicking performing some actions. This code help you how to get one by one images and displaying into the app. Step 1: Decalre NSMutablearray *ImgPathArr in .h file. in .m File add below all methods Step 2: Call below method, use your web service and add all ImagePath into ImgPathArr. -(void)LoaMoreBooksAppImg { ImgPathArr = [[NSMutableArray...

Date Format.

D

One must be careful that, if his/her app uses system date then make sure it is having a predefined format also. Since Apple devices have individual default date formats and they are different for two different devices even if the device belongs to same category(i.e. iPhone 5, iPhone 4S, iPad and etc.) Predefining the date format will fetch the date in the defined form independent of what the...

Social Media Posts from the app.

S

Apple has introduced a very interesting and easy to use UIActivityViewController class in iOS 6.0 and above versions which allows us to directly post something using the already configured Social media ( Facebook and Twitter) Accounts in the Apple device(iPhone or iPad). Below code will help you know the concept better. NSURL * url = [NSURL URLWithString:@”;];   NSString * postText =...

App crash vulnerability in iOS 6.0 and above

A

while setting a root viewcontroller of the app one must make sure that navigationcontroller object has been set rootviewcontroller of the window and not been added as subview of the window. It was ok in iOS 5.1 and lower versions but for iOS 6.0 and above it can cause crash issue. I’ll explain using the below code snippet which is used in the app delegate of the app...

iPhone app icon not showing in iTunes?

i

  Hi, Today I faced this issue, that even I had added the Icon with all the necessary sizes,  but when client opened ipa in iTunes it was not showing app icon. The solution for this was, 1. Make Icon of 512×512 size 2. Save it with name “iTunes Artwork” without extension. 3. Add it to the application Create ipa and open it in iTunes. Now check it will show you the icon in...

How to unhide Library folder in mountain lion?

H

Hello,
In mountain lion operating system on mac, I realized that Library folder is hidden. Library folder contains iPhone simulator folder where we can find database while testing application on simulator.
For unhide Library folder open terminal and type below and press enter , you will see the Library folder
chflag nohidden ~/Library/
Happy Coding 🙂

How to make UITextField’s text selected programmatically ?

H

  Hi, For making UITextField’s text selected programmatically you need to set the UITextField’s delegate linke below : txt.delegate = self; and then put following code in textFieldDidBeginEditing -(void)textFieldDidBeginEditing:(UITextField *)textField { [textField selectAll:self]; } And don’t forget to add delegate in .h @interface ViewController : UIViewController...

Zbar SDK is not working well in iOS6

Z

To solved the problem follow the steps: Go to the ZBar homepage and navigate to the mercurial repository (direct link) Download the zbar repository as zip. Unzip the file and navigate to the subfolder named “iphone”. Open the XCode project. Delete the “Examples” folder (the folder caused a build error on my machine). Hit “CMD + B” and build the source. Find...

How to access passes from passbook in app?

H

Create AppId which is similar to passTypeIdentifier. For example if your passTypeIdentifier is pass.abc.xyz then your AppId must be com.abc.xyz .While creating provisioning profile make use of this appId and make use of this provisioning profile for your app. Then only you will be able to distinguish passes available in your passbook. Also, Keep in mind that the App ID you signing your code with...

Category