2014-10-18 99 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

相关问题