ios - Checkmark in a tableview, only one selected -


Hello I know that when you choose this, how to add a tick icon on each line, but you only have one How can I check?

  - (zero) tableview: (UITableView *) tableview was viewed SelectionRowAtIndexPath: (NSIndexPath *) IndexingPath {[deselecting self.CityTableViewwidthreadpace: indexpath animated: yes]; [Self. CitiTableView setTintColor: [UIColor grayColor]]; UITableViewCell * cell = [tableView cellularoutindexpath: indexpath]; [Self.CityTableView cellForRowAtIndexPath: indexPath] .accessoryType = UITableViewCellAccessoryCheckmark; }  

This does for every one, but I want to add a new one when it removes the last one and pressed each other.

Thanks

NSIndexPath * selectedIndex; / Code>

Your

  - (UITableViewCell *) Table View: (UITableView *) Table View CellForAatind Peth: (NSIndexPath *) indexPath {// Start Your Room Here Cell. Secondary type = [index is: selected index]? UITableViewCellAccessoryCheckmark: UITableViewCellAccessoryNone; Return cell; } - (zero) tableview: (UITableView *) table view was SelectionRowAtIndexPath: (NSIndexPath *) indexPath {NSIndexPath * prevIndexPath = selectedIndex; SelectedIndex = indexPath; [Tableview reloaderRetweenExpath: [NSARRAARIBJX: PEEindexpath, IndexPath, Nile] with Row Animation: UITTualViewWare AnimationFed]; }  

Comments

Popular posts from this blog

Editing Python Class in Shell and SQLAlchemy -

import - Python ImportError: No module named wmi -

uislider - In a MATLAB GUI, how does one implement a continuously varying slider from a GUIDE created .m file? -