pradithya
pradithya
Reputation Top 5%
pradithya aria
3 Snippets  (190th place)
Published
1 Channel
Created
2 Channels
Following
69 points  (403rd place)
Reputation
Junior Code Generator
Junior Popular Coder
Junior Autobiographer
Senior Autobiographer

Recent Snippets See all snippets by pradithya

public by pradithya  548  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  394  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  576  1  4  0

Launching Image Picker

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