How to use CocoaPods with Swift project

If you already know how to install and use CocoaPods then continue else please first visit my previous blog “How to install CocoaPods in XCode” (for Objective-C).

Using CocoaPods or any Objective C library in Swift is not a big deal. XCode is quite smart and it automatically do this for you. You can also check Apple’s documentation on this Using Swift with Cocoa and Objective-C. Once libraries are added, you only need to use a bridging header between Objective-C and Swift and use the new coding style of Swift for calling those methods. Like [MBProgressHUD show] become MBProgressHUD.show( ) etc. Here I am using the example of MBProgressHUD because it is normally used in most of the projects.

Let’s see how it works:

1. Create a new XCode project and select the language Swift (no need to to this if you already have Swift project).

2. Create a Bridging-Header.h file starting with your project name. like, if my project name is SampleProject, bridging header become: SampleProject-Bridging-Header.h and Put this header at the root directory of your project.

If you are not very sure how to do this, the most simplest way is to add a test objective-c file in your project (remove that later). Xcode will prompt an option to configure bridging. When you press Yes, XCode automatically create the bridging file and put inside root of project directory.

bridging

Added Bridging Header:

bridging-file

3. Setup Pod with your project.

4. Add your Pod libraries inside bridging header file as you were normally using in Objective C project.

pod-files

6.  Now you can access MBProgressHUD methods in your swift like:

        MBProgressHUD.showHUDAddedTo(self.view, animated: true)
        MBProgressHUD.hideAllHUDsForView(self.view, animated:true)

xcode-swift

You can download my SampleProject from git. While reading this if you notice that step5 is missing, then cheers!! you follow this carefully and you understand how it works 🙂

Still facing any issue with Pod? Or want to be in touch with us? Contact us:

Email:  muzammil@triffort.com Skype: muz.iphonedev

Triffort_logo

Triffort Technologies Pvt Ltd
www.triffort.com

How to hire a great iPhone Developer ?

As the mobile market is overtaking the desktop market, the demand of highly experienced iPhone developers are increasing every day for iPhone app development and iOS programming. Every client want to hire a great iPhone developer for his job but don’t know who is most suitable candidate.

How To Start ?

When you’ve finally figured out what kind of app you’re building, you can start crafting the job requirements to begin your hunt. Write a detail document of your requirement. It would be better to add few screen shot or sketch drawings so developer can easily understand what exactly you needed. Better to have a designer with you or hire any designer also if you want to build something awesome. A developer can’t do all graphics work with excellence.

Developer must have idea about Photoshop and similar image editing software. So he can extract designer’s PSD files or create images from your design. This is not compulsory but better to have. It’s also important to note that not all apps are created equally either, even when you’re hiring someone with specific experience in iPhone app development. It all boils down to the type of app you want to produce.

Who is suitable for you ?

If you’re looking for someone who’s got more than a few apps under his or her belt, make sure Objective C is on the list and that he can do object-oriented programming. That basically means, He organized his code in a way that makes it easier for subsequent developers to pick it up and figure out what’s going on. Passion on the development team will make project managing your iPhone app all that much easier.

If your application is a game, you may not need a developer who works on apps exclusively. You can find a more game-focused developer who can code a game application in a frameworks like Cocos-2d, Unity 3D and OpenGL etc. Usability for games is unique and someone without that gaming background may not have as much to offer in this case. Games are also coded in Objective C, but you’ll have more of a pool of developers to pick from if you look beyond those who’ve just created mobile applications.

If you’re making a native app (an app built with Objective C), you’ll benefit from someone who’s been through the process a few times. A developer with some familiarity coding for an iPhone will have experience working around usability issues and have insights on what can arise when going through the approval process with Apple’s iPhone App store.

 

 

 

 

 

 

A good iPhone developer have a number of tips and tricks regarding submissions to the App Store, and this will save you time in the end. Every time a submission is rejected by Apple, you will have to go through the entire waiting process again. Each time that can be as much as 7-10 business days or more. So, developer should have experience in app submission also. This way, at least he knows what is going on on App Store.

 

 

 

 

What type of experience have you had hiring an iPhone app developer? Please share your stories below.

Author’s name : Muzammil Mohammad

Email : muzammil@triffort.com

Skype : muz.iphonedev

 

Our new app : Classic Board Pro

!! Official Pro release of Classic Board app !!

Classic Board is one the most simplest board app on App Store. It provides you a real time touch experience with Chalk and Duster.

Use stylus pen for best experience. You can also transform your iPhone/iPad screen into a presentation screen.
# Supporting New iPad (Retina) display.
# Supporting iPhone5.
# Option to change chalk color.
# Option to change chalk/duster width.
# 8 beautiful backgrounds that gives a different and classic look to your board.
# 3 nice border styles.
# Share your board via Facebook, Twitter and Email.

Download this pro version and go back in your childhood classroom.

!! Have fun !!

Classic Board

 

Download Classic Board Pro from App Store : https://itunes.apple.com/us/app/classic-board-pro/id568702868?ls=1&mt=8