这是一个类似于携程商旅类型的城市选择器
特性1.无侵入性2.使用方便
展示使用方法1.将工程中CityPicker中的Citypicker文件夹拖入你要使用的工程2调用下方函数即可 CityPickerViewController*vc=[CityPickerViewControllernew];[selfBottomPushViewController:vc];vc.selectCityModelHandler=^(CityModel*model){[sendersetTitle:model.CityNameforState:0];};3.如果想使用向上弹出的动画调用-(void)BottomPushViewController:(UIViewController*)VC{CATransition*transition=[CATransitionanimation];transition.duration=0.4f;transition.timingFunction=[CAMediaTimingFunctionfunctionWithName:kCAMediaTimingFunctionEaseInEaseOut];transition.type=kCATransitionMoveIn;transition.subtype=kCATransitionFromTop;transition.delegate=self;[self.navigationController.view.layeraddAnimation:transitionforKey:nil];[self.navigationControllerpushViewController:VCanimated:NO];}4.完成
评论