iOS類似美團的多級選擇列表:WSDropMenuView
類似美團的多級選擇列表 - 簡單易用 (史上最簡潔的 三級列表 ,并且很容易改造成兩級和一級或者四級,實現代碼不超過550行); (來了幫忙點個 贊 star -- 好人一生平安)
初始化對象
WSDropMenuView *dropMenu = [[WSDropMenuView alloc] initWithFrame:CGRectMake(0, 60, self.view.frame.size.width, 40)]; dropMenu.dataSource = self; dropMenu.delegate =self; [self.view addSubview:dropMenu];
實現代理方法 (簡單易用 , 不繁瑣)
- (NSInteger)dropMenuView:(WSDropMenuView *)dropMenuView numberWithIndexPath:(WSIndexPath *)indexPath; //dataSource - (NSString *)dropMenuView:(WSDropMenuView *)dropMenuView titleWithIndexPath:(WSIndexPath *)indexPath //dataSource - (void)dropMenuView:(WSDropMenuView *)dropMenuView didSelectWithIndexPath:(WSIndexPath *)indexPath //delegate
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!