iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

convert UIImage to NSData

I am using this code in my app which will help me to send a image. However, I have an image view with an image. I have no file in appbundle but have the image in my side. How can I change the below code ? Can anyone tell me how can I convert myimage […]

Xcode 5.1 – No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386)

After updating to Xcode 5.1, I can no longer build my project for the 64-bit simulator, receiving this error: No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386). These are my target build settings: I tried changing “Build Active Architecture” to No, as well as adding “i386” to the “Valid Architectures”, unfortunately neither worked. Thanks […]

Customize UITableView header section

I want to to customize UITableView header for each section. So far, i’ve implemented -(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section this UITabelViewDelegate method. What i do want to do is get current header for each section and just add UILabel as a subview. So far, i’m not able to accomplish that. Because, i couldn’t find anything to […]

How can I launch Safari from an iPhone app?

This might be a rather obvious question, but can you launch the Safari browser from an iPhone app?

Supporting Open In… menu item in my app for iOS Mail And Safari

I need to have my app open documents from the Safari and Mail apps with that “Open In…” thing in the UIDocumentInteractionController class. How do I accomplish this?

UITableView set to static cells. Is it possible to hide some of the cells programmatically?

UITableView set to static cells. Is it possible to hide some of the cells programmatically?

Drop-Down List in UITableView in iOS

How to Create this type of tableview in iOS?? Here, If we tap on 1st row ‘Account’, then automatically it scrolled with some more rows which is showing in Image. And if again we tap on Account, then that view will be hidden.

How to create a button programmatically?

How do I programmatically create graphical elements (like a UIButton) in Swift? I tried to create and add button into a view, but wasn’t able to.

Navigation Controller Push View Controller

Question How to navigate from one view controller to another simply using a button’s touch up inside event? More Info What I tried in a sample project, in steps, was: Create the sample single view application. Add a new file -> Objective-C Class with XIB for user interface (ViewController2). Add a button into ViewController.xib and […]

What are best practices for validating email addresses in Objective-C for iOS 2.0?

What is the cleanest way to validate an email address that a user enters that is iOS 2.0 compatible?