Open datnguyen92 opened 8 years ago
:+1: Nice work. The point of this homework was to explore a simple example of a full MVC application with a RESTful API.
Great things:
TweetCell
and RetweetCell
. The other way is using dynamic constraints. This is a situation where its not possible to specify the behavior that you want solely using Interface Builder.Some small comments:
reply
in TweetCell
.Tweet
button when then text's length > 140, but after that, though I erase some character to make length <= 140, I cannot tap Tweet
NewTweetViewController
, you should use UITextView
instead of UITextField
. With UITextField
, the long text is only shown on a single line, so you cannot view the whole text.RetweetCell
to view details, but the TweetCell
is ok.Good submission overall. This assignment is pretty hard, congrats on completing it! :star2: It was here to teach you about keeping track of "state" of objects, and also to be the first assignment to accept user input.
Some notes in your code:
if let
to unwrap variables. It's unsafe when using !
. This's very important.self
.extension
to make your code more clear. Example:extension MainViewController: UITableViewDelegate, UITableViewDataSource {
// Implement methods of table view
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
// Your code
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// Your code
}
}
TweetCell
: override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
Please view my comments in your commits for more details.
Here is my assignment 3 but still need some improvement. I will keep working on it to make it better. Thank you
/cc @coderschoolreview