Swift 3: Twitter - Handling Network and JSON Errors (Ep 14)

  Рет қаралды 19,522

Lets Build That App

Lets Build That App

Күн бұрын

Пікірлер: 55
@foocux
@foocux 7 жыл бұрын
Indeed, your videos has became my addiction already. Keep going men and thanks for all! Hope to see some videos giving some insights into Core Data, It'd be fantastic!
@bennychewDev
@bennychewDev 6 жыл бұрын
Thanks so much for this Brian! I've been seeing the 'blank collection view screen' from time to time in my app (when I forgot to run json-server) and I realized I definitely need to handle errors.
@999Souls
@999Souls 7 жыл бұрын
LBTA in the background, i see what you did there with the TV :) Another great lesson, thanks ! I'll definitely be using LBTA components in the future.
@LetsBuildThatApp
@LetsBuildThatApp 7 жыл бұрын
Great to see folks are still watching this series -_-
@NickPerkins
@NickPerkins 7 жыл бұрын
This was great Brian. Keep it coming.
@rogerwprice
@rogerwprice 7 жыл бұрын
Great stuff - good to see some good ideas for proper error handing - thanks
@paingsoe9392
@paingsoe9392 7 жыл бұрын
Awesome series for iOS Development. Please add deep link, user to user notification and more advanced. Thanks.
@LetsBuildThatApp
@LetsBuildThatApp 7 жыл бұрын
Thanks for the nice suggestions, they are very very helpful.
@kwstasna
@kwstasna 7 жыл бұрын
Once again really nice video Brian! Would be nice to talk about handling memory too, especially in big json with many images, when a user download for the first time the app, my app, is going crazy with the memory usage, although i cache them (with kingfisher) and i'm using MVC patterns like you do. Any recomendation ? P.S. the images are being downloaded in the cell swift file, if they dont exist in the cache.
@arvidurs
@arvidurs 7 жыл бұрын
Cant wait for generics. Thanks for that!
@developerios6096
@developerios6096 7 жыл бұрын
Nice error handling , thanks brian!
@ashirvadaj
@ashirvadaj 7 жыл бұрын
Hi, Please include a way to create a generic class or function for parsing the JSON response, into respective model classes passed as type parameter in your next generic video. For Eg: func createModel(responseJSON: [String: Any]?, model: Model) -> Model. where Model is a POJO class. (NSObject). This will help reduce lot of code. Thanks for your awesome tutorials!! 👍
@theJeraldo7
@theJeraldo7 6 жыл бұрын
Which one is better to use? Completion block with data and error parameters or success/failure handlers?
@dantesolorio8755
@dantesolorio8755 7 жыл бұрын
Hi Brian, what is the best way to make a retry functionality in an API with authentication and refresh_token endpoint. If I get 401 status code, I need to refresh the token, what is best way to recall my actual request function?
@Igor-rr4uc
@Igor-rr4uc 7 жыл бұрын
amazing video, thank you!
@ahmedabdou6390
@ahmedabdou6390 7 жыл бұрын
Hi Brian, I am new to iOS App Development and I purchased Basic Training Course and it was amazing, however I need a clear path, How can I go forward, Is there any books that I can purchase having the same way of teaching you have, Do you recommend watching your Video Courses in some sequence? Please guide me and thank you very much.
@LetsBuildThatApp
@LetsBuildThatApp 7 жыл бұрын
Hello Ahmed, I suggest watching whichever series interests you the most. I'll be pushing out more courses on the website soon.
@MrSean_S
@MrSean_S 7 жыл бұрын
Great videos and insight into App building and managing... What if someone wants to learn to do this stuff but does not have the money to pay a college to teach them, is there any websites, free tools, etc. that can help someone get to the beginner/ intermediate level of programming/ coding? Also what about certifications, I saw Microsoft has a MCSA and MCSD and was wondering your thoughts?
@lukewazea2k7
@lukewazea2k7 7 жыл бұрын
What more could you need other than king Brian?
@dp9729
@dp9729 7 жыл бұрын
free course www.edx.org/course/introduction-computer-science-harvardx-cs50x
@Phenom161000
@Phenom161000 7 жыл бұрын
Can you create a Udemy course that really goes super in depth on programing without story boards?? I would honestly pay for that!
@buthex
@buthex 7 жыл бұрын
Brian's facebook app and youtube app videos were pretty much my starting point. Here are two things that helped me understand a little better 1 - you need a root controller, which is what Brian does at every beginning of a video in delegate.swift. So start the app by doing that 2 - understand how constraints with visual format and the anchors work. without storyboards you have full control of what you're doing, which is great it's basic , but I hope it helps
@sanawfal
@sanawfal 7 жыл бұрын
How do you check whether the device is connected to internet by any means. I have tried exploring reachability class but could not integrate into the app.
@jbee1263
@jbee1263 7 жыл бұрын
Is the "Parsing JSON was not valid" message intended to be displayed to the user? Maybe I missed it, but I don't think you showed that being displayed... was curious. Or, is that message not intended for the user and we'd only expect to see the default label text when the JSON fails?
@LetsBuildThatApp
@LetsBuildThatApp 7 жыл бұрын
For a lot of these tutorials, I leave a lot up to you guys on how to figure out this stuff. There's really only so much I can record on these videos which take about 4 hours to produce.
@jbee1263
@jbee1263 7 жыл бұрын
Fair. Not sure if this would be your recommended way... if (apiError.error?.localizedDescription != nil)
@Anthony-ds9se
@Anthony-ds9se 7 жыл бұрын
Do you want to add fire base into this app?
@jeenujose4506
@jeenujose4506 6 жыл бұрын
Hi I had a doubt....my project is on android studio, nodejs n mongodb.... V have entered data into the database... N v have linked the server to the database... BT while debugging v r getting network error.. So could u pls tell me what is d reason??actually its not able to fetch data from d database... Pls help me if its possible
@halifaxdeveloper
@halifaxdeveloper 7 жыл бұрын
Hi, i really like your video. By the way are you Chinese? Do you mind if i upload your video to Chinese video websites?
@LetsBuildThatApp
@LetsBuildThatApp 7 жыл бұрын
Yes I am chinese, 也会说国语 I guess I can't really stop anyone from uploading these videos elsewhere.
@halifaxdeveloper
@halifaxdeveloper 7 жыл бұрын
那我就不传了。谢谢你的节目
@LetsBuildThatApp
@LetsBuildThatApp 7 жыл бұрын
其实你可以传的 我也不会介意 主要是要翻译的好 因为我本身中文不好,要不然我可以考虑用中文来教
@halifaxdeveloper
@halifaxdeveloper 7 жыл бұрын
你误会了,我只是上传,方便自己看和其他懂英文的,因为我只能在公司才可以上youtube,家里没法看。
@halifaxdeveloper
@halifaxdeveloper 7 жыл бұрын
我也是ios开发者,做了快10年了
@silver10188
@silver10188 7 жыл бұрын
thank you, I kinda started to see the pattern of doing things the wrong way and then fixing them to be confusing and time consuming, i guess would be enough if just point it out verbally.
@LetsBuildThatApp
@LetsBuildThatApp 7 жыл бұрын
Yeah, a lot of people need the explanation. I could be on the other spectrum where I just build out everything at real speed for a contract project. I think someday I'll do that for an entire series just to show how fast things can be.
@silver10188
@silver10188 7 жыл бұрын
sounds a great idea!
@11m0
@11m0 7 жыл бұрын
Do you plan on making Android tutorials as well?
@miguelchavez2768
@miguelchavez2768 7 жыл бұрын
how do you select a cell? like if i wanted to go to a different page after i touched on a tweet ?
@prayash
@prayash 7 жыл бұрын
Add a 'didSelectItemAt' function to the HomeDatasourceController. You can then create a new TweetViewController class which has its own variable called 'tweet' that holds the object passed from HomeDatasourceController. Hope Brian can chime in on whether this is the best way to do it, I've used this in my app and it works so far but I don't know if there is a cleaner way. For example: In my TweetViewController class it has a var tweet: Tweet? obj to hold selected Tweet data.. then inside HomeDatasourceController override func ... didSelectItemAt { let tweetView = TweetViewController() // we set the new view's tweet variable to the selected datasource's tweet let tweetView.tweet = self.datasource?.item(indexPath) as? Tweet navigationController?.pushViewController(tweetView, animated: true) } Additionally, you will need to override didHighlightItemAt and didUnhighlightItemAt methods in your datasource controller as these will allow you to change bg color of the cell when it's tapped. You also need to run collectionView?.delaysContentTouches = false on viewDidLoad of the datasource controller so the tap response is super snappy. Hope this helps!
@s11gangsta
@s11gangsta 7 жыл бұрын
How can you get Facebook, Twitter and Instagram videos or media to integrate with third party app?
@lyheangibell
@lyheangibell 6 жыл бұрын
thank you so much
@thatwascomic5118
@thatwascomic5118 7 жыл бұрын
i need some help regarding to web scraping in iOS.Please create a tutorial on it.I will be waiting for it.
@LetsBuildThatApp
@LetsBuildThatApp 7 жыл бұрын
+Entertainment World scraping is always quite unreliable so I wouldn't recommend this approach
@thatwascomic5118
@thatwascomic5118 7 жыл бұрын
thanks for replying but I need to scrap some data from web as this is little part of chat app.which i am creating.Can you suggest me any tutorials on it
@LetsBuildThatApp
@LetsBuildThatApp 7 жыл бұрын
I suggest looking into regex to perform the scraping.
@thatwascomic5118
@thatwascomic5118 7 жыл бұрын
thanks i will look for regex
@sambio2122
@sambio2122 7 жыл бұрын
how can we contact you ?
@nadaelsheikh102
@nadaelsheikh102 7 жыл бұрын
please make a video about instgram live streaming
@nawragrr
@nawragrr 3 жыл бұрын
I think i got banned or something it wont let me login
@giorgio1apple
@giorgio1apple 7 жыл бұрын
Shouldn't you have used exceptions instead of passing errors as arguments?
@LetsBuildThatApp
@LetsBuildThatApp 7 жыл бұрын
Swift doesn't use exception, instead we throw errors.
@giorgio1apple
@giorgio1apple 7 жыл бұрын
Yeah, that's what I meant. Why not throw an error instead of passing it as an argument?
@LetsBuildThatApp
@LetsBuildThatApp 7 жыл бұрын
Thats a good question. I think it's because throwing an error seems to mean something severely wrong has occurred. Just using a completion block passing the error back is an old pattern we've used since objective c.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 17 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 11 МЛН
Parsing JSON Just Became Super Easy in Swift 4 with Decodable
19:30
Lets Build That App
Рет қаралды 274 М.
Swift: Loading Images Asynchronously and storing with NSCache and NSURLCache
20:53
Memory Leaks in iOS: Find, Diagnose, & Fix (2022)
12:44
iOS Academy
Рет қаралды 52 М.
Replace Is Number Saves 440GB A WEEK
9:54
ThePrimeagenClips
Рет қаралды 328 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 326 М.
Swift: Twitter - Headers, Cells, and Footers (Ep 1)
21:45
Lets Build That App
Рет қаралды 106 М.
This Heater Can Save Lives During Power Outages!
19:48
Project Farm
Рет қаралды 509 М.
Design Instagram News Feed - iOS System Design Interview
18:25
Andrey Tech
Рет қаралды 19 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 17 МЛН