2015-08-20 32 views
0

我想讓CalendarFlyoutView淡入並從Xcode和Objective-C的右上角展開。這是執行文件中存在的方法:如何在Objective-C中淡入並擴展模態從右上角開始

- (void)presentInView:(UIView *)holderView completion:(void (^) (void))completion 
{ 
    // make this view stretch 
    CGRect upperRightR = CGRectMake (CGRectRight (holderView.bounds), 0, 1, 1); 
    [self setFrame:upperRightR]; 
    self.clipsToBounds = YES; 
    self.alpha = 0.0; 

    [holderView addSubview:self]; 

    [UIView animateWithDuration:kAnimation_ExpandCalendarDuration 
     animations:^{ 
      [self setFrame:holderView.bounds]; 
      self.alpha = 1.0; 
     } 
     completion:^(BOOL finished){ 
     }]; 
} 

如何讓它淡入並從右上角展開?任何幫助將不勝感激。

回答

1

這似乎是正確的,也許檢查右上角的自動佈局?這可能會導致問題...