के अंदर पाठ को स्क्रॉल करने के लिए कैसे करें मुझे यूआईटीएक्स्टफील्ड के अंदर डेटा स्क्रॉल करने की आवश्यकता है ताकि स्क्रॉलिंग द्वारा लंबी चौड़ाई का टेक्स्ट देखा जा सके। क्या कोई इसे हल करने के लिए मुझे जवाब दे सकता है।uitextfield आईओएस
6
A
उत्तर
-1
आप इसे इस तरह से कर सकते हैं।
UITextView *textField = [[UITextView alloc]initWithFrame:CGRectMake(100, 100, 60, 50)];
textField.text = @"I need to scroll data inside UITextfield so that the text of longer width can be seen by scrolling.Can someone reply me to solve this.";
textField.delegate = self;
[self.view addSubview:textField];
+4
टेक्स्टफिल्ड जैसे टेक्स्ट फ़ील्ड जैसे नाम देना वास्तव में एक बुरा अभ्यास है !!! –
-1
आप UITextView का उपयोग कर सकते हैं: एक नीचे की कोशिश करो।
UITextView *textView=[[UITextView alloc] initWithFrame:CGRectMake(20, 40, 200, 70)];
textView.font=[UIFont systemFontOfSize:18.0];
textView.userInteractionEnabled=YES;
textView.backgroundColor=[UIColor whiteColor];
textView.scrollEnabled=YES;
textView.delegate = self;
[self.view addSubview:textView];
संबंधित मुद्दे
- 1. आईओएस कस्टम कीबोर्ड को UITextField
- 2. UISearchbar के UITextfield को अनुकूलित करें - आईओएस
- 3. आईओएस: UITextField को कुंजी कैसे भेजें?
- 4. UITextField
- 5. UITextField
- 6. UITextField
- 7. UITextField
- 8. UITextField
- 9. UITextField
- 10. UiTextField
- 11. UITextField
- 12. UITextField
- 13. UITextField
- 14. UITextfield
- 15. UITextField
- 16. UITextfield
- 17. UITextField
- 18. UITextField
- 19. UITextField
- 20. UITextfield
- 21. UITextField
- 22. UITextField
- 23. UITextField
- 24. UITextField
- 25. UITextField
- 26. UITextField
- 27. Xamarin: UITextField ऊंचाई
- 28. UITextField स्पर्श पर क्रैश
- 29. आईओएस - कुंजीपटल में बैकस्पेस का पता लगाने जब UITextField
- 30. आईओएस UITextField ऑटो का आकार सामग्री के अनुरूप
आप 'UITextView' का उपयोग क्यों नहीं करते हैं जो आपको स्क्रॉलिंग सुविधा देता है। – Kampai
यू को UITextView का उपयोग करना है जिसके लिए UITextfield नहीं है। आप टेक्स्टफील्ड के भीतर स्क्रॉल क्यों चाहते हैं? कोई विशेष कारण? –
मैं सिंगल लाइन टेक्स्ट को बाएं और दाएं स्थानांतरित करना चाहता हूं, ताकि पूरा टेक्स्ट देखा जा सके। – user1728987