Jijingcheng

Results 6 issues of Jijingcheng

您好,我用pod 'KJCategories'后,代码跟您的项目的代码比起来好像少了很多分类 ![image](https://user-images.githubusercontent.com/33832304/178929588-db379197-ce9c-4f28-b861-4cb04017bcd8.png)

AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate; // 打开横屏开关 appDelegate.allowRotation = YES; // 调用转屏代码 [UIDevice deviceMandatoryLandscapeWithNewOrientation:UIInterfaceOrientationLandscapeRight]; /// 输入要强制转屏的方向 /// @param interfaceOrientation 转屏的方向 + (void)deviceMandatoryLandscapeWithNewOrientation:(UIInterfaceOrientation)interfaceOrientation { NSNumber *resetOrientationTarget = [NSNumber numberWithInt:UIInterfaceOrientationUnknown]; [[UIDevice...

![image](https://user-images.githubusercontent.com/33832304/137278331-664171b6-2c82-49c9-9c5e-f596db345b08.png)

![image](https://user-images.githubusercontent.com/33832304/45420441-c0d39a00-b6bc-11e8-8be9-5ae3a74549b6.png)

/** 拖动事件 @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)