This was a useful tutorial for me on auto layout and Swift (coming from 16 years of Objective-C and a two year developer hiatus). Thanks!
I had to add a couple of lines to ArtistDetailViewControllerâs cellForRowAtIndexPath: to initialize the appearance behavior of the moreInfo textView.
Maybe this is a little out of blue. But,can you tell me in âEvernoteâ App Detail View
First there is UITextView and then there are as many images as you want to add.So, is it a scrollview or some kind of table view, because no. of images a user will add are not certain.
Nice tutorial.
I have one question, I have 3 different custom cells to be shown in different sections, the cells in each sections are different and have different heights. In this case how we can handle?
what value should i put
tableView.estimatedRowHeight = ?? which tablecellâs height?
Hello, thank you for this tutorial. Is it possible to see somewhere the construction of the table view before resizing the cells. I am especially interested on the construction of the organic label with multigne text just inside. I feel some worries multignes have a label in a tableview and I saw that you use for bio Json.
Thank you in advance
Thanks for the tutorial. I am new to swift. I used your instructions to create a very simple tableview with three images of different sizes. I want to dynamically change the height of the cell such that the image fills the imageView in the width and image maintains the aspect ratio. Based on your instructions this seems to be a straight forward task. But in my case, height of the cell doesnât adjust to perform this task. Either the image fills with aspect ratio leaving a lot of width space empty or fills the width but clips the part of the image vertically. I made sure there are 4 leading, trailing, top and bottom constraints and also the tableView.rowHeight and table.estimatedRowHeight is set in viewDidLoad. Would it be possible for you take a look at the project that I have uploaded at this link and suggest what could I be missing? Dynamic Sizing of Cell height with Image dimensions · Issue #2 · Neeraj3pathi/SimpleDrawing · GitHub
Then, the table cell expanded. But not exactly what I defined.
Run simulator, touch the artist and see their works. We defined the workImageViewâs Top and Bottom space equal to 8. Right? But the actual space is not 8. Please see the vertical red line of this screenshot
The margin of nameLabel and moreInfoTextView are fine. But only the workImageViewâs margin is not 8. I tried to various composition of top&bottom space priority, content hugging priority, but end in fail.
I have a question:
when clicking the moreInfoText in simulator iPhone 7 Plus -iOS 10.0, the Artist detail tableView will shake,other simulator not shake,why?Is it cause of âtableView.beginUpdates() tableView.endUpdates()â?