【问题标题】:TextFields not Appeared文本字段未出现
【发布时间】:2012-11-19 11:44:29
【问题描述】:

我是一名新的 iOS 开发人员。我正在为字段设置动画,并且我想在字段中输入数据。我正在使用以下代码。

文字没有出现。它正在上升。请帮帮我。

if UIInterfaceOrientationIsLandscape(theStatusBarOrientation)
    keyboardShiftAmount = keyboardFrame.size.width;
else 
    keyboardShiftAmount = keyboardFrame.size.height;

[UIView beginAnimations: @"ShiftUp" context: nil];
[UIView setAnimationDuration: keyboardSlideDuration];
NSLog(@"%f",keyboardShiftAmount);
self.view.center = CGPointMake(self.view.center.x,
                               self.view.center.y - keyboardShiftAmount);
[UIView commitAnimations];
viewShiftedForKeyboard = TRUE;

【问题讨论】:

    标签: ios objective-c cocoa-touch uiview uikit


    【解决方案1】:

    使用uitextfielddelegate制作动画

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-21
      • 2012-09-07
      • 2011-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多