Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Updated About view Controller #397

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 30 additions & 0 deletions Powerup/AboutViewController.swift
Expand Up @@ -7,10 +7,40 @@ class AboutViewController: UIViewController {
dismiss(animated: true, completion: nil)
}


@IBOutlet weak var questionFirst: UILabel!
@IBOutlet weak var answerFirst: UILabel!
@IBOutlet weak var questionSec: UILabel!
@IBOutlet weak var answerSec: UILabel!
@IBOutlet weak var questionThird: UILabel!
@IBOutlet weak var answerThird: UILabel!


override func viewDidAppear(_ animated: Bool) {
addPopup()
}

override func viewDidLoad() {
super.viewDidLoad()

text(textFirst: aboutAnswerFirst, textSec: aboutAnswerSec, textThird: aboutAnswerThird)

}

// function for modification of about view taking string i/p from string and print to about view.
func text(textFirst: String, textSec: String, textThird: String){

questionFirst.text = "The Game"
questionSec.text = "Why is PowerUp needed?"
questionThird.text = "How does PowerUp helps teenagers?"

// attributes for answers
answerFirst.text! = textFirst
answerSec.text! = textSec
answerThird.text! = textThird

}

func addPopup() {
let model = PopupEvent(topText: "Made with ♥",
botText: "by Systers Open Source",
Expand Down