都市は知識の点を探します
3792 ワード
1.// interactivePopGestureRecognizer delegate back
self.interactivePopGestureRecognizer.delegate = nil;
//
self.interactivePopGestureRecognizer.enabled = NO;
2.//
bar.translucent = NO;
3. NavigationBar :
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
dict[NSFontAttributeName] = [UIFont systemFontOfSize:20];
dict[NSForegroundColorAttributeName] = [UIColor whiteColor];
[bar setTitleTextAttributes:dict];
4. ( ):self.topViewController
push :[self.viewControllers firstObject]
,
, , , 。。。 cityButton
View addSubView, insert.....
view , , , , , addSubView,remove ,
UICollectionViewFlowLayout , flowlayout ,
layout.itemSize
// cell item
layout.minimumInteritemSpacing
layout.minimumLineSpacing
layout.sectionInset = UIEdgeInsetsMake();
// 。。。。。。。
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
/* , cell iconButton */
// 1.
if (self.userInteractionEnabled == NO || self.hidden == YES || self.alpha <= 0.01) return nil;
// 2.
if ([self pointInside:point withEvent:event] == NO) return nil;
return self.iconButton;
}
// ,
self.layer.shadowOpacity = 0.1;
self.layer.shadowOffset = CGSizeMake(0, 2);