Featured
-
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi -
Make UIImage White Background Transparent in iOS
If you came across to a requirement where you want
by ashish.nakoti -
User's location update on server when app is in background.
Code for those Apps where we need to update user's
by ashish.nakoti -
Animate button with zoom and bounce effect in ios
Many social apps are using bouncing effect for but
by ashish.nakoti -
Crop an image from UIImageView
With the following method stated below you can cro
by kuldeep.butola
Tags
Using UIAlertController instead of UIAlertView (Deprecated) in iOS
Hi guys,
As we all know that from iOS8 Apple has provided a new UIAlertController class which you can use instead of UIAlertView which is now deprecated. So today i'll demonstrate, how to use UIAlertController for displaying an alert in iO...
How to store user information in NSUserDefaults in swift language?
Hi Reader’s,
This blog includes the concept of how to store user information in NSUserDefaults in swift language. Below is the code in swift language for the same:-
import UIKit
import Foundation
class RegisterViewCont...
How to add and access TextField in UIAlertController ?
The following code will show the Alert with textField :-
UIAlertController *alert=[UIAlertController alertControllerWithTitle:@"Alert Title" message:nil preferredStyle:UIAlertControllerStyleAlert];
// to add textField
[aler...
UIAlertController in iOS
For iOS 8 and above Apple have introduced UIAlertController to present action Sheet and alerts.
In order to present alert set preferredStyle to UIAlertControllerStyleAlert and for actionSheet preferredStyle to UIAlertControllerStyleActionShee...
UIAlertController as an action sheet in iOS8 and above.
Now you can use UIAlertController as an actionsheet in iOS 8 and above versions. Here is an example of it:-
UIAlertController * view= [UIAlertController
alertControllerWithTitle:@"Sample"
...
How to use UIAlertController for iOS8 and above.
Apple has deprecated UIAlertView in iOS 8 and above. Now they have introduce UIAlertController, below are the examples.
AlertView without buttons:-
UIAlertController * alert= [UIAlertController
alertContro...