I’m going to demonstrate on how I achieved the dynamic height for my UITableViewCell. Below is what it looks like. This is a UITableViewCell for comments. ImageView on the left side is for the user’s avatar, the top most UILabel is for the username and lastly at the bottom is the UILabel for comment. YesContinue reading “Dynamic TableViewCell Height”
In programming, you always encounter duplicate code blocks. The best thing to do is to place it in a separate function so that we can reuse it throughout our source code.
Playing a looping video in iOS is fairly simple but there’s a catch. You need to declare AVPlayerLooper global in your class. Below is the code: The videoPlayContainerView is a UIView.
I’m going to show how I achieved the camera shutter button and animation using Swift, more or less the same with the stock iOS camera app. Grab a coffee because this one’s going to be a little longer. Storyboard UI On your ViewController, drag a UIButton and place it at the bottom part. On theContinue reading “Create a camera shutter in Swift”
I am going to implement Google’s Chromecast on iOS using Swift.I will be using Google Chromecast 2 device and Xcode 9.4.1. First let’s read the Google Cast documentation to get familiar with it’s implementation. After getting familiar with the Get Started section, we need to register the Google Chromecast device. There will be a one time $5 fee forContinue reading “Implement Chromecast on iOS using Swift”