草庐IT

aNotification

全部标签

ipad - 获取iPad屏幕键盘旋转后的大小

对于我为iPad设计的应用程序,我有一个ScrollView,其中包含一些文本字段/TextView。为了让所有内容都可见,我调整了ScrollView的contentSize属性以在底部添加一个缓冲区,该缓冲区对应于键盘与ScrollView的重叠程度。这是代码(这里有一些特定于应用程序的内容,但希望不要太多以至于您看不懂):-(void)viewWillAppear:(BOOL)animated{[superviewWillAppear:animated];NSNotificationCenter*nc=[NSNotificationCenterdefaultCenter];[nc

ios - 完成按钮事件 MPMoviePlayerController

在我的iPhone上,我正在全屏模式下播放视频/音频文件。当视频/音频文件到达结尾时,将触发以下方法:-(void)movieFinishedCallback:(NSNotification*)aNotification{MPMoviePlayerController*player=[aNotificationobject];[playerstop];[[NSNotificationCenterdefaultCenter]removeObserver:selfname:MPMoviePlayerPlaybackDidFinishNotificationobject:player];[p

ios - 完成按钮事件 MPMoviePlayerController

在我的iPhone上,我正在全屏模式下播放视频/音频文件。当视频/音频文件到达结尾时,将触发以下方法:-(void)movieFinishedCallback:(NSNotification*)aNotification{MPMoviePlayerController*player=[aNotificationobject];[playerstop];[[NSNotificationCenterdefaultCenter]removeObserver:selfname:MPMoviePlayerPlaybackDidFinishNotificationobject:player];[p

ios - UIKeyboardBoundsUserInfoKey 已弃用,改用什么?

我正在使用3.2sdk开发iPad应用程序。我正在处理获取键盘大小以防止我的文本字段隐藏在它后面。我在Xcode中收到警告->UIKeyboardBoundsUserInfoKey已弃用我应该使用什么来代替收到此警告? 最佳答案 我使用了之前提供的解决方案,但仍有问题。这是我想出的:-(void)keyboardWillShow:(NSNotification*)aNotification{[selfmoveTextViewForKeyboard:aNotificationup:YES];}-(void)keyboardWillHi

ios - UIKeyboardBoundsUserInfoKey 已弃用,改用什么?

我正在使用3.2sdk开发iPad应用程序。我正在处理获取键盘大小以防止我的文本字段隐藏在它后面。我在Xcode中收到警告->UIKeyboardBoundsUserInfoKey已弃用我应该使用什么来代替收到此警告? 最佳答案 我使用了之前提供的解决方案,但仍有问题。这是我想出的:-(void)keyboardWillShow:(NSNotification*)aNotification{[selfmoveTextViewForKeyboard:aNotificationup:YES];}-(void)keyboardWillHi