在cell上自定義button,如何根據(jù)button獲取cell所在位置
思路就是獲取button的父視圖,然后確定位置
OrderCollectionViewCell *cell =(OrderCollectionViewCell *)[[button superview] superview];
NSIndexPath * path = [self.tableVIew indexPathForCell:cell];
NSInteger cellIndex = [path row];
如何實(shí)現(xiàn)類(lèi)似美團(tuán)外賣(mài)頁(yè)面的分割視圖

例圖
最直接方法使用蘋(píng)果自帶控件 UISplitViewController(分割視圖),或者全部使用button,點(diǎn)擊切換數(shù)據(jù)源
如何使用tabbar上小紅點(diǎn)提示功能

樣式
使用方法
//開(kāi)啟小紅點(diǎn)
self.tabBarItem.badgeValue = @“0”;
//如果需要改變,在改變的地方添加如下代碼
self.tabBarController.tabBar.items[ 填寫(xiě)items的位置(從0開(kāi)始計(jì)算)].badgeValue = @"相對(duì)于的數(shù)量";