![objective-c – 如何使NSWindow setFrame:.. animated:YES]函数动画下来而不是up?,第1张 objective-c – 如何使NSWindow setFrame:.. animated:YES]函数动画下来而不是up?,第1张](/aiimages/objective-c+%E2%80%93+%E5%A6%82%E4%BD%95%E4%BD%BFNSWindow+setFrame%EF%BC%9A..+animated%EF%BC%9AYES%5D%E5%87%BD%E6%95%B0%E5%8A%A8%E7%94%BB%E4%B8%8B%E6%9D%A5%E8%80%8C%E4%B8%8D%E6%98%AFup%EF%BC%9F.png)
CGfloat amountToIncreaseWIDth = 100,amountToIncreaseHeight = 100;NSRect oldFrame = [window frame];oldFrame.size.wIDth += amountToIncreaseWIDth;oldFrame.size.height += amountToIncreaseHeight;oldFrame.origin.y -= amountToIncreaseHeight;[window setFrame:oldFrame animated:YES];@H_419_19@ 总结
以上是内存溢出为你收集整理的objective-c – 如何使NSWindow setFrame:.. animated:YES]函数动画下来而不是up?全部内容,希望文章能够帮你解决objective-c – 如何使NSWindow setFrame:.. animated:YES]函数动画下来而不是up?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)