I am doing a project in Objective-C. My problem is now,
Suppose I have a UITableView I want when I select a row it can show image with current position of user and remaining rows no need to show the same image.
I tried with lot of examples but no use.
can anyone help me? please...
Upon row selection, you should grab a cell and create your custom accessory view with that cell:
Note however that
bSelectedbool above should ideally come from your model array, the array that holds your table view objects. Upon row selection, it will simply negate its value, such as:Your
createAccessoryViewwould look something like this:Off course, substitute your own image names above.
If you need more functionality in table view with some ready-made customisations (search, select, delete), take a look at this ViewController developed by me on github.