pradithya
pradithya
Reputation Top 5%
pradithya aria
3 Snippets  (212nd place)
Published
1 Channel
Created
2 Channels
Following
Dec 17, 2017
Last Visit
Dec 9, 2017
Registered
69 points  (405th place)
Reputation
Junior Code Generator
Junior Popular Coder
Junior Autobiographer
Senior Autobiographer

Recent Snippets See all snippets by pradithya

public by pradithya created Dec 9, 2017  444  0  4  0

Creating Alert with Action

let controller = UIAlertController()
controller.title = "Hey!"
controller.message = "Don't Worry Be Happy!"
        
let okAction = UIAlertAction(title: "ok", style: UIAlertActionStyle.default) { (alert: UIAlertAction) in
    self.dismiss(animated:true)
}
        
controller.addAction(okAction)
self.present(controller, animated: true, completion: nil)
						
;

public by pradithya created Dec 9, 2017  332  1  4  0

Launching Activity View Controller

let image = UIImage()
let viewController = UIActivityViewController(activityItems:[image], applicationActivities: nil)
self.present(viewController, animated:true, completion: nil);
						
;

public by pradithya created Dec 9, 2017  519  1  4  0

Launching Image Picker

self.present(UIImagePickerController(), animated:true, completion: nil);
																		
;