Skip to main content

Instantly parse JSON

You must know about the JSON  . Don't worry I am not here to teach this because I am not a good teacher 😉. If you are really interested to learn about it then just search on the Google or check   Parsing complex JSON in Flutter  (Personally recommended) because she covers almost all things. Now, do you have time to write such classes in such a digital age?? Great 👍 then just see  https://app.quicktype.io/ . Really a good job 👏 What you need to do  Copy JSON   Paste in JSON area Give the Model name Copy code Let me explain it to you. They have a text area in which you need to copy the JSON and then Copy the dart code. They also have other language support also.  Thanks.  Please comment below how I can improve this article

How to Go in Image Gallery


 UIImagePickerController()

Implementing of that method

Step 2: Add
import UIKit 
 class ViewController: UIViewController {
 override func viewDidLoad() { 
             super.viewDidLoad()  
                           } 
@IBAction func experiment (_ sender: UIButton) {  // Button Action
 let nextController = UIImagePickerController() // Make a constant for using the method
 self.present(nextController, animated: true, completion: nil)  //Using the "present" function 
 }
 } 

Launch Image Picker And Activity View


Steps to build a simple app that launches an imagePicker:
Step 1: Create a new project using the Single View Application Template
Step 2: Add
@IBAction func experiment(){
}
to the ViewController.swift file
Step 3: In Storyboard, open up the utilities pane on the right and drag a button from the objects menu into your viewController.
Step 4: Control click on the button to bring up the pop-up connections menu. Under "Sent events" drag from Touch Up Inside to the ViewController's experiment method.
Step 5: Implement the experiment method
Step 6: Add a key-value pair to the project's Info.plist file with the key "Privacy - Photo Library Usage Description" and the value "Just testing!"

Comments

Popular posts from this blog