iPhone SDK Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsMobile ProgrammingiPhone SDK Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2012, 12:50 AM
vineesh vineesh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2012
Posts: 10 vineesh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 34 m 56 sec
Reputation Power: 0
Add User input into UITableView

I want get tableView value from the user.
I used UITextField for get value from user.
Please give me Source code for this.
Thank You.

Reply With Quote
  #2  
Old February 21st, 2012, 03:37 AM
erika_wilson erika_wilson is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Location: India
Posts: 39 erika_wilson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 59 m 58 sec
Reputation Power: 2
Try with this...


NSMutableArray *Array = [[NSMutableArray alloc] init];

-(void)txtFieldreturn
{
[Array addObject:[NSString stringWithFormat:@"%g",[txtField1.text floatValue]]];
[tableView1 reloadData];
}



- (NSInteger)tableViewUITableView *)tableView numberOfRowsInSectionNSInteger)section
{
return [container count];
}


- (UITableViewCell *)tableViewUITableView *)tableView cellForRowAtIndexPathNSIndexPath *)indexPath
{
static NSString *cellIdentifier=@"cell";
cell=[tableView1 dequeueReusableCellWithIdentifier:cellIdentifier];

if(cell==nil)
{
cell=[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefaultreuseIdentifier:cellIdentifier];
}
if(tableView==self.tableView1)
{
cell.textLabel.text=[Array objectAtIndex:indexPath.row];
}
cell.textLabel.font=[UIFont boldSystemFontOfSize:14];
return cell;

}

PS:- Please consider : & ( together where the sad smiley shows.

Reply With Quote
  #3  
Old May 11th, 2012, 04:36 AM
Hansy Hansy is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2012
Posts: 13 Hansy Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 3 h 39 m 57 sec
Reputation Power: 0
you can use either UITextField or UITextView for getting input text.

Reply With Quote
Reply

Viewing: Dev Shed ForumsMobile ProgrammingiPhone SDK Development > Add User input into UITableView

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap