Asynchronous Request in IOS

Friday, 30 August 2013 by

In iOS we can execute url requests in Asynchronous and Synchronous way.Here we will discuss how we can call url using Asynchronous request.To do so we need to take an UITableview.We will show all the data fetched from url in the Tableview cells.To generate the data from url we need to do following steps.First we need to call

NSUrl send Synchronous Request in IOS

Friday, 30 August 2013 by

An NSURLConnection object provides support to perform the loading of a URL request. The interface for NSURLConnection is sparse, providing only the controls to start and cancel asynchronous loads of a URL request. NSURLConnection has a convenience class method, sendSynchronousRequest:returningResponse:error:, to load a URL request synchronously. To request a Synchronous Url write the following method- Write

Programmatically playing Video in IOS

Friday, 30 August 2013 by

In IOS we can play video files programmatically as per our requirement.To do so we need to follow a few steps.First of all we need to add MediaPlayer framework to our project from linked frameworks.Then we need to drag the video file,which we want to play,in our project.Now in the .h file of our controller

IOS Asynchronous Task

Friday, 30 August 2013 by

Sometimes we want to perform two or more task at a time where one of them must be executed in background. For example if we want to request a NSUrl which takes some amount of time and for that time period we want to show a Loading alert. Here the request must be executed in

Reload UIView

Thursday, 29 August 2013 by

The UIView class defines a rectangular area on the screen and the interfaces for managing the content in that area. At runtime, a view object handles the rendering of any content in its area and also handles any interactions with that content. The UIView class itself provides basic behavior for filling its rectangular area with

UIAlertView Custom Buttons

Thursday, 29 August 2013 by

UIAlertView is used to display an alert message to the user. Use the properties and methods defined in this class to set the title, message, and delegate of an alert view and configure the buttons. You must set a delegate if you add buttons. The delegate should conform to the UIAlertViewDelegate protocol. Use the show method

UIAlertView Loading Message

Thursday, 29 August 2013 by

UIAlertView is used to display an alert message to the user. Use the properties and methods defined in this class to set the title, message, and delegate of an alert view and configure the buttons. You must set a delegate if you add custom buttons. The delegate should conform to the UIAlertViewDelegate protocol. Use the show

In this example we will discuss how a layout can be slide like facebook. Code: Let define a layout filter.xml which will be initially invisible: Now we will define main_layout in which filter_layout will be included: The animation is handled in FilterAnimation.java class Four animation xml have to be declared in res/anim folder Code for

Programmatically playing Audio in IOS

Monday, 26 August 2013 by

There are many ways in IOS to play an audio files.Such as System Sound Services, AVAudioPlayer, Audio Queue Services, and OpenAL.But the most popular and easy way to play an audio file is using AVAudioPlayer.Let’s learn the trick of how we can play sound files programmatically using AVAudioPlayer. First of all we need to drag a sound file,which

This method is called to let our application know that it moved from the inactive to active state. This can occur because our application was launched by the user or the system. Applications can also return to the active state if the user chooses to ignore an interruption (such as an incoming phone call or

TOP