도시 에서 지식 을 찾다

4095 단어 필기
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);

좋은 웹페이지 즐겨찾기