Can’t find an answer?

Can’t find an answer?

Ask us to get the answer

  • This forum is empty.

You are done with the implementation of the map-based navigation application. How you will test navigation routing on your simulator.

class LogInViewController: UIViewController {
    var NetworkManager = NetworkManager()
}
func loginAction(){
    let loginVC = myStoryboard.instantiateViewController(withIdentifier: "LogInViewController") as! LogInViewController
    loginVC.networkManager.doSomeAction()
}

Modify below code using Dependency Injection.

Swift is a static language and Objective-C dynamic language. What does it mean?

Suppose you are developing an application that lists news updates for a nearby location. Like popular apps on the store, the client also wants to do it using a paginating mechanism. How would you implement this?

 print("Apple”)
  DispatchQueue.main.async {
    print("iPod”)
    DispatchQueue.main.async {
        print("iPhone")
    }
    DispatchQueue.global().sync {
        print("iPad")
    }
     print("Apple Watch")
 }
 print("Apple TV")

What will be output for below code?

What is the difference between the consumable and non-consumable type of in-app purchase?

What happens when the app receives a push notification? Which are delegate methods that deal with the notification?

class Student {
    let name: String
    init(name: String) {
        self.name = name
    }
    var scoreCard: ScoreCard?{
        didSet{
            print("\(name) got \(scoreCard!.marks) marks in this exam")
        }
    }
}
class ScoreCard {
    let marks: Float
    init(marks: Float) {
        self.marks = marks
    }
    var student: Student?{
        didSet{
            print("\(marks) for \(student!.name) in this exam")
        }
    }
}
var student: Student?
var score:ScoreCard?
student = Student(name: "Albert Einstein")
score = ScoreCard(marks: 80)
student!.scoreCard = score
score!.student = student
student = nil
score = nil

Viewing 15 topics - 1 through 15 (of 169 total)

1 2 3 10 11 12
  • You must be logged in to create new topics.