NBA playoff win chances via Bayesian inference

A survey of methods in R with code

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




MVVM Simple TableView with Movie App in Swift

here’s the output,

I actually wanted to put the below gif in here, but i don’t know how 😈 if someone knows, please let me know.

This is my second page, which is displaying movie details like thumbnail images, movie title, ratings, genres, and overviews! if you click the play button on the thumbnail image, it will play the movie trailer from youtube.

At the bottom, to make it not too simple, I added a similar movie section using collectionView.

.

.

.

.

Here’s my Podfile,

💡There’s Test Mode so you can try to send request so try it out! :)

well, i said i’m new to Swift, i don’t know if my folder structure is correct, but here’s how it looks,

💣 If you relocated the file location of the LaunchScreen.storyboard and the Info.plist will give you an error so go to setting and be sure to change the path for each of them.

1️⃣ View Model → View models

2️⃣ Model → Simply structures

3️⃣ Controllers → View Controllers

4️⃣ Views → Storyboards (i made separate storyboard for the player view for movie trailer) and others.. :)

6️⃣ Resources

7️⃣ Supportings

.

.

.

.

.

.

.

.

here’s my code below, (sorry if my code isn’t that clean yet, i’m working on it)

and.. to decode the Json file.. :)

So if you are done with getting data successfully, then what you need to do is UI

here’s my storyboard looks like,

❗️First ViewController → tableView

❗Second ViewController → ContainerView(for the similar movies), CollectionView(genres), CollectionView(to display similar movies)

create Player.storyboard and create View for the PlayerView

Connect the View with YTPlayerView(probably this will recognize when you already install the pods), oh don’t forget to Connect the Storyboard as well!

Simply you can load the Video playerView.load(withVideoID: <<KEY>>, playerVars: [“playsinline” : “1”]). then you will see the magic! 🦄

I think this is the end of my first tableView project, and thanks for reading this super long post! I hope something might help you. If there’s any suggestions, questions or anything could improve my coding skills please let me know!

Hopefully i can make it better next time 👏🏻

Add a comment

Related posts:

Apa Itu Lembah Kekecewaan dan Kenapa Orang Sering Terjatuh Ke Dalamnya?

Setiap kita pasti pernah merasakan kecewa selama perjalanan hidup kita. Entah itu kecewa dengan orang lain, keluarga, kerabat, sahabat atau bahkan kecewa dengan diri kita sendiri. Kekecewaan diri ini…

Inter smash Salernitana

Dominant Inter Milan notched a sixth consecutive Serie A victory by thrashing bottom side Salernitana 5–0 in Salerno on Friday to stretch their lead at the top of the standings to four points. The…