0
A
回答
1
您可以使用「frame」屬性獲取按鈕的框架。這將返回一個CGRect對象,它基本上包含您的按鈕x-coord,y-coord,width和height。
根據您想要翻譯按鈕的位置,計算新的x座標和y座標。 然後執行以下操作:
btnMyButton.frame = CGRectMake(oldx,oldy,width,height);
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:btnMyButton];
[UIView setAnimationDuration:0.3];
btnMyButton.frame = CGRectMake(newx, newy, width, height);
[UIView commitAnimations];
相關問題
- 1. 角度翻譯 - 翻譯翻譯值attr
- 2. 翻譯頁面與jquery「翻譯」,谷歌翻譯等
- 3. iPhone UIButton翻轉和展開
- 4. UIView/UIButton座標翻轉
- 5. 翻譯
- 6. 翻譯
- 7. CGAffineTransform翻譯垃圾翻譯時
- 8. Silverstripe可翻譯不能創建翻譯
- 9. 角度翻譯:翻譯動態值
- 10. R:google翻譯API(包'翻譯'和''translateR')
- 11. angular-translate在翻譯文件中翻譯
- 12. poedit和zend翻譯數據庫翻譯
- 13. Django的翻譯:如何翻譯語言
- 14. 添加翻譯模型翻譯
- 15. Django的翻譯,嵌段沒有翻譯
- 16. Django翻譯 - 翻譯動態字符串
- 17. 如何從TextBlob檢索翻譯翻譯
- 18. 如何實施「智能」翻譯:翻譯?
- 19. 沒有谷歌翻譯翻譯
- 20. 翻譯If/Else && RegEx - Ruby翻譯爲Python
- 21. CSS翻譯已經翻譯的元素
- 22. 翻譯模塊不會翻譯文檔
- 23. Drupal翻譯只翻譯管理
- 24. 角度翻譯更新翻譯表
- 25. 「谷歌翻譯」vs「翻譯API」
- 26. 翻譯JSP VisualForce
- 27. JFileChooser翻譯
- 28. php翻譯
- 29. 翻譯API
- 30. I18n翻譯fnando