2014-10-18 195 views
1

按鈕在iOS 8中變爲切換狀態,並且在iOS 7中可以正常工作。在iOS中更多按鈕位於後退按鈕。我在iOS中更新。請幫幫我。在iOS 7中工作不是iOS 8

if (isBlurView) { 
      [email protected]"Back"; 
      [moreButton setEnabled:NO]; 
      [UIView animateWithDuration:0.4 animations:^{ 
       [blurView setFrame:CGRectMake(0, 65, blurView.frame.size.width,0)]; 
      } completion:^(BOOL finished) { 
       isBlurView=FALSE; 
       [blurView setHidden:YES]; 
       [moreButton setEnabled:YES]; 
       [email protected]"More"; 
      }]; 
     } else { 
      [moreButton setEnabled:YES]; 
      [blurView setHidden:NO]; 
      [email protected]"Back"; 
        [UIView animateWithDuration:0.4 animations:^{ 

       [blurView setFrame:CGRectMake(0, 65, blurView.frame.size.width,568)]; 

      }completion:^(BOOL finished) { 
       isBlurView=TRUE; 
       [moreButton setEnabled:YES]; 
       [email protected]"Back"; 
      }]; 
     } 
    } 

回答

1

正確的方法來設置文本的UIButton是通過setTitle:forState:方法

[moreButton setTitle:@"Back" forState:UIControlStateNormal]; 
+0

IT的工作很好,但在單擊屢地方更多按鈕會變回 – 2014-10-18 10:20:00

相關問題