ios - Swift 2.1 Selecting Options from Image Icons in a View Controller -


if wanted have screen number of options displayed via icons present user select from. best way this?

for instance if had 6 different images varying price ranges $25 - $35, $35 - 50, $50 - $75 , on , wanted them select 1 of these ranges, 1 suggest use in situation? tableview? collectionview? there way use collectionview in manner?

it totally depend on app requirement , ui. can use tableview, collectionview, or scrollview.

you need manage selection of item. should use nsarray of nsdictionary. nsdictionary having key called selected set true when item selected. when other object selected make loop make object selected false. , set selected object true.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -