8
A
回答
5
就這麼簡單
[imageView addSubview:yourLabel];
11
的UIImageView是的UIView的子類,所以你可以添加任何UI對象到它。
UILabel *xlabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 50, 20)];
xlabel.text = @"xxx";
[myImageView addSubview:xLabel];
相關問題
- 1. UISlider - 將UILabel添加到最小/最大UIImageView?
- 2. 將UILabel添加到圖像
- 3. 將按鈕添加到UILabel
- 4. 在didSelectRowAtIndexPath + uiTableview上添加uiimageview和uilabel
- 5. 將UIImageView添加到UIScrollView
- 6. 將UUD添加到UIImageView
- 7. 將註釋添加到UIImageView
- 8. 將UIImageView添加到UIScrollView
- 9. 添加UIImageView到UIView
- 10. Objective C如何將UiLabel添加到UiScrollWiev
- 11. 如何將反射添加到UILabel。 IOS
- 12. 如何將UILabel添加到UIAlertController中
- 13. 將UILabel添加到UITableViewCell的detailTextLabel
- 14. 將背景圖像添加到UILabel
- 15. 將CALayer添加到UILabel文本
- 16. 如何將UIPanGestureRecognizer添加到UIImageView中
- 17. 添加文本到UIImageView
- 18. UIImageView沒有添加到UIView
- 19. 如何以編程方式將UIImage添加到UIImageView然後將該UIImageView添加到另一個UIView?
- 20. 無法添加UIImageView?
- 21. iphone更新uilabel和uiimageview
- 22. 將UIImageView添加爲子視圖
- 23. 如何添加UILabel上面的UILabel
- 24. 如何將UIImageView添加到UIView而不顯示UIViewBorder之外的UIImageView的內容
- 25. 如何添加填充到UILabel?
- 26. 的UILabel添加到特定indexpath在UICollectionView
- 27. 添加一個UILabel或NSString到UIalertView
- 28. UILabel沒有添加到視圖
- 29. 在Swift中添加TapGestureRecognizer到UILabel
- 30. 如何添加透視到UIImageView