I have made an application in which I have UITableview and UIView. In UIView I have a text field i which entered data must be save in the UITableView Controller. For this I have done thi:
I have made an application in which I have UITableview and UIView. In UIView I have a text field i which entered data must be save in the UITableView Controller. For this I have done thi:
Note: TodayTasks is UITableView controller and AddTasks is UIView for entering data.
But I am facing failure in this. Can any one help me.
Thanks
You're going to have to be a bit more descriptive.... what exactly does 'facing failure' mean? Does the app crash? Does it compile? What happens?
__________________
Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----
no it doesn't crashes. the failure I am facing is "Data is not being entered"
thanks
Well, seeing as you create 'add' one line before you add it to the UITableView, my guess is that the text field is empty (unless your AddView init() call populates the text field with some data).
You'll need to have some data in your text field before you add it to your table view.
__________________
Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----
Sorry I did not understand please can you explain please. I do put text in textfield but even then it does not put into the array of UITableView List.
for explaining you:
I have done this in array
Code:
array=[[NSMutableArray array]retain];
This is TableView array. Means Today's page array
The text field you're adding will be nil because you've only just created it, so there's no data to add to your array:
Code:
Today *today=[[Today alloc]initWithStyle:UITableViewStylePlain];
AddTasks *add=[[AddTasks alloc]init];
// *** At this point, the text field of add.tName will be blank because you have only just initialized it with the line above.
[today.array insertObject:add.tName.text atIndex:[today.array count]];
__________________
Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----
I haven't just created the textfield. Actually I do put data in text field after running the program but when I check the tableview, it shows empty.
It is not being done with this too. It is not showing the string.