how to clear table cell imageView [closed] - ios

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
What is the easiest way to clear cell.imageView.image when you are reusing table cells in cellForRowAtIndexPath? The problem is when I am scrolling table and new images start to load I can still see previous images for a couple of seconds.

Set placeholder image or nil to imageview.image.

Related

Swift 3 table header resize if image is not available? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
Hello i need one small help
actually the photos explain what i want.
The problem is in my detail of product page can be have an ımage or not.
if ımage is not available ı dont want any space between product title and user photo
if image is available its okay no problem now
WITH NO PHOTO
WITH PHOTO
what should i do ? , this is table view header
You should have the information if the header has image in some kind of data source. Then depending on this flag (hasImage for instance) you should pass different values for heightForHeader of the tableView - one height when you do not have image, and a larger height when you do. Also note that you might need to update your header's view constraints.

Loading a XIB file to a UIView Swift 2 [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I have a "view" that includes a "scroll view"
I also have a "Xib" file that i want to load in that "scroll view"
How should i do this?
Any idea what I am doing wrong?

Xcode: Storyboard change presentations [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Evening, I'm playing with Xcode storyboard and stack views inside a cell.
I have several stack nested.
When I load the app the presentation looks fine, but when I press into a row of the TableView, something happens and and Image view change the size :)
I'm sure that there is some kind of problem with constraints and stacks, but I can't find it, could you help me?
here's the git: https://github.com/AndreaMiotto/TwentyFour
Here some pictures:
Add fixes, not all, but it's working and you can fix rest by yourself.
https://github.com/OMGHaveFun/TwentyFour

UISearchBar and two UITableView [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I hope everybody is fine. I'm new to iOS programming and I have a question. In my app I have an UISearchBar and two UITableView. The first UItableView is the one the have the list of items and I want to use the second one to display the result that I get from the UISearch. My question is if there is a way that I can connect the second UITable to display the result? I think using control and dragging it but it didnt work. Please is anyone can help me
You don't need 2 tables. IOS has UISearchDisplayController component which already has 2 tables, one for showing data and one for search results.
I suggest you to read this article http://pinkstone.co.uk/how-to-create-a-searchable-uitableview/
and to download project from it https://github.com/versluis/Table-Seach-2013

UITableViewCell how to make right detail text multiple lines without moving the text on the left? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I am using a standard UITableViewCell, right detail. The text on the right is 2 lines, but when I let it go to two lines the text on the left is no longer vertically centered. I tried modifying the "Align Baseline" but that didn't seem to help. Is there a simple fix for this?
EDIT: The issue is the different size text. Probably the right way to fix it is to use a custom cell with the right label adjusted so that its origin is higher up.
Don't know why they closed this question. There's no code to be shown here. You can build this in interface builder without any code whatsoever.
Thanks

Resources