{"action":"closed","issue":{"url":"https://api.github.com/repos/TheIronYard--Orlando/iOS--2015--SPRING/issues/17","labels_url":"https://api.github.com/repos/TheIronYard--Orlando/iOS--2015--SPRING/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/TheIronYard--Orlando/iOS--2015--SPRING/issues/17/comments","events_url":"https://api.github.com/repos/TheIronYard--Orlando/iOS--2015--SPRING/issues/17/events","html_url":"https://github.com/TheIronYard--Orlando/iOS--2015--SPRING/issues/17","id":58783037,"number":17,"title":"02 -- NOC List -- Keaton Swoboda","user":{"login":"keatonswob","id":10980774,"avatar_url":"https://avatars.githubusercontent.com/u/10980774?v=3","gravatar_id":"","url":"https://api.github.com/users/keatonswob","html_url":"https://github.com/keatonswob","followers_url":"https://api.github.com/users/keatonswob/followers","following_url":"https://api.github.com/users/keatonswob/following{/other_user}","gists_url":"https://api.github.com/users/keatonswob/gists{/gist_id}","starred_url":"https://api.github.com/users/keatonswob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keatonswob/subscriptions","organizations_url":"https://api.github.com/users/keatonswob/orgs","repos_url":"https://api.github.com/users/keatonswob/repos","events_url":"https://api.github.com/users/keatonswob/events{/privacy}","received_events_url":"https://api.github.com/users/keatonswob/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-24T18:35:44Z","updated_at":"2015-02-25T04:33:39Z","closed_at":"2015-02-25T04:33:39Z","body":"# Homework 02\r\n\r\n## NOC List\r\n\r\nCongratulations agent. Your work on the Mission Briefing application was exemplary and has already proven invaluable to getting field agents up to speed on their new missions. The Director has noticed your hard work and has seen fit to increase both your security clearance and your field of responsibility. Your next mission is a top priority for the agency and if completed successfully, could provide you with a valuable shortcut to a supervisor position. Please read below for further info.\r\n\r\nOur undercover agents in Eastern Europe are in trouble. The NOC list (Non-official cover) has been leaked and we need our directors to have quick access to the information so we can try to mitigate the damage. Some of the agents on the list have an access level that makes them privy to very sensitive information. We need an application that will present the NOC list's information in a quickly digestable format. Our top agents have been working on it, but we need this done ASAP and you've proven yourself to be quite capable of a quick turnaround.\r\n\r\nSee the agency's Github repository for the project resources. Also contained within will be additional instructions for completing this mission.\r\n\r\nThe Director herself has given you access to all the agency's resources to complete this mission. We're counting on you agent.\r\n\r\nThis message will self destruct in 5 seconds.\r\n\r\n### Steps to Success\r\n\r\n#### Storyboard Tasks\r\n\r\n* [x] The master view should be embedded in a navigation controller\r\n* [x] The table view cell prototype should display two labels. One on the left of the cell and one on the right.\r\n* [x] The table view cell prototype should have a disclosure indicator\r\n* [x] The table view cell prototype should have its reuse indentifier set (hint: this should match the identifier set in \"cellForRowAtIndexPath\")\r\n* [x] The table view prototype cell should segue to the detail view. This should \"show\" the detail view.\r\n\r\n* [x] The detail view should have a custom class name of \"DetailViewController\". See the identity inspector in Interface Builder.\r\n* [x] The detail view should have 3 labels\r\n\t* [x] A label in the upper left corner that displays the agent's cover name\r\n\t* [x] A label 10 pts below the cover name label that displays the agent's real name\r\n\t* [x] A label centered horizontally and vertically in the view that displays the agent's access level. It should say \"Level #\".\r\n\t* [x] These labels should be connected to their appropriate properties in the DetailViewController class.\r\n\r\n#### Code Tasks\r\n\r\n* [x] 1 and 2. Extract the appropriate values from the agent dictionary and set the associated Agent object values\r\n* [x] 3. Set the title of the master view\r\n* [x] 4. Initialize the agents NSMutableArray\r\n* [x] 5. Call loadNocList method\r\n* [x] 6. Create a for-in loop to iterate over the agent dictionaries and create Agent objects out of them\r\n* [x] 7. Call a method to reload the data for the tableview\r\n* [x] 8. Set the segue identifier to match the value used in the storyboard \r\n* [x] 9. Get the index path value for the selected cell\r\n* [x] 10. Replace the \"0\" in the brackets with the row value of the index path object\r\n* [x] 11. Use the provided call to the segue object for the destinationViewController to send the Agent object to the detail view controller\r\n* [x] 12. Set the number of rows per section for our tableview (we only have 1 section)\r\n* [x] 13. Add the appropriate cell identifier in the dequeue method call\r\n* [x] 14. Get a handle to the appropriate Agent object from the agents array\r\n* [x] 15. Set the two cell labels to their appropriate values from the Agent object (the cover name and the real name)\r\n* [x] 16. Send something to the object calling this method. What is this method supposed to return?\r\n* [x] 17. Connect this property to its associated storyboard object\r\n* [x] 18. Create two additional properties for the other storyboard objects and connect them as well\r\n* [x] 19. Extract the agent's last name from the cover name property\r\n* [x] 20. Set the title of this view to \"Agent #\", where # is the agent's last name\r\n* [x] 21. Set the three labels to their appropriate values from the Agent object\r\n* [x] 22. Call the configureView method"}}