Showing posts with label iOS. Show all posts
Showing posts with label iOS. Show all posts

Tuesday, November 6, 2018

Parse XML file Objective C

In this post, I am going to explain how to parse an XML file for iOS 10.0 using Objective C. There are lots of XML parser available for iOS. Here I am using

Wednesday, January 18, 2017

Code signing is required for product type 'Application' in SDK 'iOS 10.2'


You will get this error if the Unit Test Target sets code signing

Monday, January 9, 2017

How to install CocoaPods and Dependencies

If you need to add third party libraries in your XCode project, it will be very good decision to install Cocoapods because it is a dependency manager. It is built with Ruby. So it could be installed on any OS X, with default Ruby. The installation process is very easy. Just follow the given steps.

Sunday, October 23, 2016

How to insert a character in a NSString Objective C

In Objective C, there are two types of objects one is mutable another one is immutable. If you have to change value of any object you need to declare it as mutable. According to the Apple document,

Tuesday, May 31, 2016

How to convert NSString to NSDate in Objective C

Sometimes you need to convert a date string to date (NSString to NSDate). Suppose from server you are getting a date string with its date format. But in your app you need to convert it in date to change the format or to

Thursday, April 21, 2016

Get Dynamic Label Size iOS


Sometimes we need to set the height or width of the text container (It could be a label, aletview or textbox) dynamically. That means it's size is depending on the text which we wanted to write/show in it.

Wednesday, December 9, 2015

How to call an AppDelegate Method from ViewController using Objective C

One of the problem I faced recently was, when I needed to call a user defined method of AppDelegate class from the ViewController where I was working on. I did not want to repeat the same method in my project.

It is a bit different process to call a user defined method from an AppDelegate class from another ViewController class. But it is easy to do and will reduce the redundancy of code. You just need to write one (maximum two) line(s) to call the method from Delegate class.