黑团debugLog

  1. 08下拉菜单,xib文件名和类名必须一致!差了个s,导致显示不出来!

  2. 10.3.popover消失

    1
    2
    3
    4
    5
    6
    7
    8
            if (self.changeCityBlock) {
    self.changeCityBlock();
    }
    HMCitiesViewController *citiesVc = [[HMCitiesViewController alloc] init];
    citiesVc.modalPresentationStyle = UIModalPresentationFormSheet;
    [self presentViewController:citiesVc animated:YES completion:nil];}}

    Warning: Attempt to present <HMCitiesViewController: 0x7f9dd4e1d970> on <HMRegionsViewController: 0x7f9dd4c1bc30> whose view is not in the window hierarchy!
    1. 不能dismiss,只能变透明.

    2. 透明还是能看到

      1
      self.view.alpha = 0;
    3. 设置frame为0,导致约束冲突,也不好.

  3. 10.2.城市列表导航栏背景图片不拉伸.

    1. 给背景图片添加Constraints.
  4. 10.4.5.开始编辑导航栏上移,只有图片动.

    1. 应该选整体的约束,选了图片的约束.
    2. Snip20191125_5
  5. collectionView layout 只需要设置好insetWidth

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-(void)setupLayout:(CGFloat)totalWidth orientation:(UIInterfaceOrientation)orientatioin
{
// 总列数
int columns = UIInterfaceOrientationIsPortrait(orientatioin) ? 2 : 3;

// FlowLayout
UICollectionViewFlowLayout *layout = (UICollectionViewFlowLayout *)self.collectionViewLayout;

CGFloat lineSpacing = 25;
CGFloat sectionInsetWidth = (totalWidth - columns * layout.itemSize.width ) / (columns + 1);

layout.minimumLineSpacing = lineSpacing;
//不需要设置minimumInteritemSpacing
// layout.minimumInteritemSpacing = interitemSpacing;

layout.sectionInset = UIEdgeInsetsMake(lineSpacing, sectionInsetWidth, lineSpacing, sectionInsetWidth);
}

xcode can’t verify the identity of a repository hosted on gitee.com

quit proxy.

push source control operation canceled

image-20191202142030284

UM4.4.适用iOS7,高版本iOS不支持.