Convert HTML to Plain Text in Swift
I’m working on a simple RSS Reader app as a beginner project in Xcode. I currently have it set up that it parses the feed, and places the title, pub date, description and content and displays it in a WebView. I recently decided to show the description (or a truncated version of the content) in […]
UITableView example for Swift
I’ve been working with Swift and iOS for a number of months now. I am familiar with many of the ways things are done but I’m not good enough that I can just write things up without looking. I’ve appreciated Stack Overflow in the past for providing quick answers to get me back on track […]
How to add spacing between UITableViewCell
Is there any way to add spacing between UITableViewCell? I have created a table and each cell only contain an image. The image is assigned to the cell like this: cell.imageView.image = [myImages objectAtIndex:indexPath.row]; but this make the image enlarged and fit into the whole cell, and there are no spacing between the images. Or […]
Auto layout constraints issue on iOS7 in UITableViewCell
I’m using auto layout constraints programmatically to layout my custom UITableView cells and I’m correctly defining the cell sizes in tableView:heightForRowAtIndexPath: It’s working just fine on iOS6 and it does look fine in iOS7 as well BUT when I run the app on iOS7, here’s the kind of message I see in the console: Break […]
UITableViewCell subview disappears when cell is selected
I’m implementing a color-chooser table view where the user can select amongst, say, 10 colors (depends on the product). The user can also select other options (like hard drive capacity, …). All color options are inside their own tableview section. I want to display a little square on the left of the textLabel showing the […]
How to determine UIWebView height based on content, within a variable height UITableView?
I am trying to create a UITableView with variable height rows as explained in the answer to this question My problem is each cell contains a UIWebView with different (statically loaded) content I can’t figure out how to calculate the proper height based on the content. Is there a way to do this? I’ve tried […]
UITapGestureRecognizer breaks UITableView didSelectRowAtIndexPath
I have written my own function to scroll text fields up when the keyboard shows up. In order to dismiss the keyboard by tapping away from the text field, I’ve created a UITapGestureRecognizer that takes care of resigning first responder on the text field when tapping away. Now I’ve also created an autocomplete for the […]
Adding iOS UITableView HeaderView (not section header)
I want to add a table header (not section headers) like in the contacts app for example: exactly like that – a label beside an image above of the table. I want the all view be scrollable so I can’t place those outside of the table. How can I do that?