i using hmsegmentedcontrol(https://github.com/heshammegid/hmsegmentedcontrol) in swift.
when tried use following function
- (void)setindexchangeblock:(indexchangeblock)indexchangeblock;
xcode not find function when used following syntax
categoriesview.setindexchangeblock { } it says "hmsegmentedcontrol not have member named categoriesview.setindexchangeblock. noticed function in hmsegmentedcontrol not use block has been recognized xcode.
- (void)setselectedsegmentindex:(nsuinteger)index animated:(bool)animated; how fix it?
thanks!
set block using this
categoriesview.indexchangeblock = { (index) in if index == 0 { //do } }
Comments
Post a Comment