Open randyting opened 9 years ago
@codepath I just fixed the first bug. I was presenting the main navigation stack modally on top of the LoginViewController, but I never dismiss the modally presented view controller when I log out. This causes some weird state in which the a new view controller is modally presented on the LoginViewController even when the original modally presented view controller wasn't dismissed. I solved this problem for now by embedding the login view controller in a navigation controller and pushing the rest of the views on top of that instead of presenting modally.
I still can't run the app in the simulator without the debugger, but it works perfectly on hardware.
Sorry for any inconvenience (late submission). =)
You were in time, and in general I start reviewing apps in the morning.
It is best to have at max 1 view controller presented as a modal.
--dirk
that version of SwiftyJSON wasn't released yet for Cocoapods?
This versions of SwiftyJSON is released for Cocoapods, but it needs to be built as a framework because it's written in Swift. When I use use_frameworks!
in my Podfile, I get the error shown in the screengrab above. Looks like BDBOAuth1Manager has issues building as a framework. This looks like an open issue that the creator of BDBOAuth1Manager is looking into:
https://github.com/bdbergeron/BDBOAuth1Manager/issues/35 http://stackoverflow.com/questions/31740248/xcode-swift-pods-installation-import-file-not-found
As a workaround, I build all my pods as static libraries and manually added the SwiftyJSON project to my workspace. Have you tried this before? Any tips for a better way to do this?
Also, if possible, I'd like some feedback on my specific implementations of:
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
What should I implement here?
TwitterUser
object into NSUserDefaults
. I think I need to look deeper into NSCoding to really understand what I'm doing, but I hacked together a solution for serializing the TwitterUser
object. Is this the correct implementation? Will we be learning more about NSCoding in this course?I just spent a few hours trying to figure out why my app doesn't start up in the simulator without the debugger connected. Looks like when I don't import SwiftyJSON in any of the files, the issue goes away. I'm going to parse JSONs the good old fashioned way on the next assignment. This library has caused me enough trouble already. I would like to know if you have any better ideas for parsing JSON.
Thanks,
Randy
Yeah, sometimes XCode can be a b*tch, sorry. Meanwhile I cant compile and run your app, so will just look at your sourcecode
:+1: nice work. The point of this homework was to explore a simple example of a full MVC application with a RESTful API. For each point in the homework feedback checklist, I'll either confirm that you're on the right track with the implementation, or I'll provide some feedback:
In general, you should challenge yourself to create visually polished applications. That's where you'll find all the rough edges of the iOS framework and earn the next level of mastery.
-- dirk
My app is complete with bugs. Please see README.md for a description of the bugs. I'm working on reverting to a version of the codebase without the bug. Thanks! /cc @codepath