How you would use NSURLSession to download files

iOS7, NSURLSession, Objective-C, UIDocumentInteractionController, UIProgressView

Since iOS7, Apple engineers introduced a new set of networking API called NSURLSession, in order to help with downloading/uploading content via HTTP or HTTPS protocols.

NSURLSession came with a lot of improved tasks which developers had to write a lot of code to handle. These tasks are:

Present a login screen before the tab bar controller in a UITabBarController based app

cocoa-touch, iOS7, UITabBarController

Hello everybody, and happy new year for all of you :]

A while ago, I saw so many questions on SO enquiring about how to implement a login screen to the user before he gets to the home screen on a UITabBarController based app, same way like Pinterest, Facebook and so many apps behaving this obvious way.

So I am writing this quick tutorial to show you how to do that easily in Xcode5.

Customize your alerts with NoticeView library

cocoa-touch, iOS, iOS6
Error notice view

Cool Error notice view

I came across a lot of useful libraries hosted in Github, one of them is called NoticeView.

This is a lightweight library which gives a cool style for success and error alerts. Finally, i get rid of UIAlertView for just displaying “Network error” messages.

This tutorial is to introduce you with this intuitive library through a practical example: Trying to load a URL in webview, if any error occured (example: Internet connection down), a NoticeView will be displayed instead of the UIAlertView :) 

Loading URLs from UITableView

cocoa-touch, iOS
Loading URLs from UITableView

Loading URLs from UITableView

One of the major use of UITabelView is to make menus where every cell perform a specific task or let you navigate to another view. The typical example is the Settings application we all know in iOS devices.

In this tutorial, you will see how to deal with a grouped UITableView so that each selected row leads you to a website address. All that done programmatically without relying to Interface Builder.

Objective-C on Windows? Yes, you can!

Objective-C

Objective-C is an OOP language often used on the Macintosh, including the Cocoa API of Mac OS X. And, since 2007, Obj-C is used for developing iOS devices applications.

However, to learn and develop in Objective-C, you are not obliged to procure a Macintosh. Actually, there is a free implementation of OpenStep framework (developed by Apple) called GNUstep, which is, multiplatform and works under GNU/Linux as well as Microsoft Windows.

In this tutorial I will guide you through the necessar steps, to ensure you get your own Objective-C code on Windows to work.