Jijingcheng
Jijingcheng
您好,我用pod 'KJCategories'后,代码跟您的项目的代码比起来好像少了很多分类 
AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate; // 打开横屏开关 appDelegate.allowRotation = YES; // 调用转屏代码 [UIDevice deviceMandatoryLandscapeWithNewOrientation:UIInterfaceOrientationLandscapeRight]; /// 输入要强制转屏的方向 /// @param interfaceOrientation 转屏的方向 + (void)deviceMandatoryLandscapeWithNewOrientation:(UIInterfaceOrientation)interfaceOrientation { NSNumber *resetOrientationTarget = [NSNumber numberWithInt:UIInterfaceOrientationUnknown]; [[UIDevice...


/** 拖动事件 @param pan 拖动手势 */ -(void)dragAction:(UIPanGestureRecognizer *)pan{ if(self.dragEnable==NO)return; switch (pan.state) { case UIGestureRecognizerStateBegan:{//开始拖动 if (self.beginDragBlock) { self.beginDragBlock(self); } //注意完成移动后,将translation重置为0十分重要。否则translation每次都会叠加 [pan setTranslation:CGPointZero inView:self]; //保存触摸起始点位置 self.startPoint = [pan translationInView:self]; break; }...
navigationController?.navigationBar.setBackgroundImage(UIImage.init(named: "mine_bg_top"), for: .default)