Programming Mobile Devices

ash0926
Assignment.pdf

3/16/2021 Course Schedule - Spring 2021 - Prog Mobile Devices (CSCI-457-01W)

https://myleoonline.tamuc.edu/d2l/le/calendar/72498/event/289795/detailsview#289795 1/2

TabView - Due Mar 18, 2021 11:59 PM

Spring 2021 - Prog Mobile Devices (CSCI-457-01W)

Spring 2021 - Prog Mobile Devices (CSCI-457-01W) ST

Mar 18, 2021 TabView - Due

Print Settings

TabView

In this application, you will make an app using TabViewController framework, as we did in "TAMUC CS" app for grad and

undergrad students. The purpose of this app is to give the user a quick access to some big companies' twitter and Facebook

pages. Please see below sketch.

The app will have three tabs (as in CS app). The first tab (the left one) will present five companies/persons and a switch for each.

You can choose (update) these companies/persons as you wish. Once the user wants to see a company's twitter and/or facebook

pages, she/he makes this company's radio button ON. So, a company/person is selected in "company" tab, then user may go

(touch) to Twitter and FaceBook tabs. Each of these tabs has UIWebView to display twitter and facebook pages for the selected

company in the first tab.

Make sure that

- Once user started the app, the last company (ABC bank in above schema) will be selected by default. You need to keep this data

in a file or in user setting permanently even if the app is closed. (See below for the hint)

- If the user makes all switches off, then Twitter and FaceBook tab will show an error/warning, such as "Please make a selection

first".

- User will not be able to make more than "one" ON selection among five radio buttons. If she/he tries to make two "ON"s among

them, automatically set previous switch ON to OFF.

- Make sure that you made https request in your app to FB and Twitter. Otherwise you need to configure the your app's plist file

Tasks

Add a tas

3/16/2021 Course Schedule - Spring 2021 - Prog Mobile Devices (CSCI-457-01W)

https://myleoonline.tamuc.edu/d2l/le/calendar/72498/event/289795/detailsview#289795 2/2

TabView

Due March 18 at 11:59 PM Starts Mar 8, 2021 10:00 AM Ends Mar 19, 2021 11:59 PM

so that you can load http sites.

HINT: How to use user default setting of an app to keep data:

// This section is from FlagGame, model.swift

private let guessesKey = "FlagQuizKeyGuesses"

// get the NSUserDefaults object for the app

let userDefaults = NSUserDefaults.standardUserDefaults()

// get number of guesses

let tempGuesses = userDefaults.integerForKey(guessesKey)

if tempGuesses != 0 {

numberOfGuesses = tempGuesses

}

Submission Procedures: Zip your Xcode project, then submit *.zip to D2L.