I have UITextView and when I press the 'Save' button I like it! Code> text will be added to a line in my UITableView . I already set the table view I would like to go to UITextView while selecting one on the table view.
First of all, you have to add the data to your data source. Depending on the establishment of your desk, if you edit your question with more details, then I can get more specificity here.
Next you call insertRowsAtIndexPaths: WithRowAnimation: Changing the value of the index path depending on the table view on which you add new data. The table view will take care of the rest, call it to cellForRowAtIndexPath: using the new table cell (using data that you have just added to the data source) And you can even animate it in this situation. For the second part of your question, you will need to implement the tableView: didSelectRowAtIndexPath: and it will receive the appropriate string based on the selected data from your data source, and Set text view accordingly. Something like this textView.text = myDataSourceArray [indexPath.row];
Popular posts from this blog
मैंने Rails 4.1 को अपने रेल ऐप को अपडेट किया है और ActionController :: InvalidCrossOriginRequest अपवाद प्राप्त करना शुरू कर दिया है। मुझे पाया गया कि बिंग बॉट्स सक्रिय रूप से मेरी गतिशील रूप से जेनरेट की गई जावास्क्रिप्ट फाइल को क्रॉल करते हैं। मुझे लगता है कि यह सही है कि रेलवे इस अपवाद को उठाती है क्योंकि जावास्क्रिप्ट को सीधे कहा जाता है, लेकिन मेरा लॉग इस अपवाद के साथ भरा हुआ है। > सीएसआरएफ संरक्षण को बंद किए बिना इस अपवाद को बढ़ाने से बॉट्स से बचने का कोई तरीका क्या है? मेरा नियंत्रक ऐसा दिखता है। वर्ग सूचियाँ नियंत्रक & lt; ApplicationController before_filter: authenticate_user! Def add @list = List.find (params [: आईडी]) response_to do | format | Format.js {render 'add'} format.html {redirect_to list_path (@list)} एंड एंड एंड जेएच के उत्तर में जोड़ने के लिए और मानते हुए कि आपको कुछ सहायता चाहिए, आपको पता होना चाहिए कि हर मेजबान यह निर्धारित करने के लिए उपयोग करता है कि उनके सर्वर का कौन (और नहीं) पहुंच सकता है सीधे आपकी त्रुटि मूल रूप से है क...
I want to ask if there is another way to see the error label, which has been shown whether we There is no need to fill up with the necessary to use the verifyText command. Here's an example: id: [required] PW: [required] Email: [expected] Dropdown box: [required] If you make test cases, then there is an easy way to make a test case first, and then three error labels will show whether the other fields will not be filled with that. The PW or email from the dropdown box will be shown even if the error is filled with the error label. Before saving that field, I'm just using the verified text, but if there are many conditional requirements like this there is no easy and easy way to create this testcase? Thx If I understand you correctly, If you ignore the required text fields, you are searching for a way to verify that error message. Since I know the Waitfortext command and expect the error message to appear, this command will wait until it expects the err...
I am retrieving a player list from a server and I'm doing stuff with it (later problem related to) . These un-related processes work only if the user name does not have an empty space, but instead of '' the character is '_' I am using this code for loop through character and then find it a '' and, if it is, then it will be replaced with '_' Change, but for some reason it is not known at all? four [] names; (String player name: chatlist) {name = playerName.toCharArray (); For (int i = 0; i & lt; name.length; i ++) {if (name [i] == '') {name [i] = '_'; }} String name S = new string (name); System.out.println (player name + "->" + nameS); } An example of a user name and output is as follows: TestSyear 1 output Testuser_1 Example user output ExampleUser_One Use Replacement All ("\\ s +", "_") . The better way to do this is, otherwise you will change each location wit...
Comments
Post a Comment