UIAlertView with a single line of code

Just Copy & Paste following function.

Once you have declared above function, You can display ALERT with just a single line of code. Few Examples :