Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-05-2008, 09:31 AM   #10 (permalink)
bhil
New Member
 
Join Date: Aug 2008
Posts: 17
Default

Quote:
Originally Posted by dhanasekar View Post
Hi indiekiduk, thanks. It's helpful for me.
I have created two tab with table view. But i got a problem to add a table item. In the first table view i added simply "Hello Universe" it's working. Then i added NSMutableArray on second table view. but now its not working*

FirstViewController.m - [cell setText:@"Hello Universe"] - it's working fine..

but if add NSArray to AppDelegate it's not working. did anything wrong in this??

TabDemoAppDelegate.m - array = [[NSArray arrayWithObject:@"First",@"Second",@"Third",nil] retain]
You haven't provided a lot of information here but going from what you have posted, you need to have the array declared in your table view's data source, and set the cell text from the appropriate location in the array in the method
Code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
bhil is offline   Reply With Quote
 

» Advertisements
» Online Users: 272
18 members and 254 guests
ADY, aikhan, AppAnnex, astalavista, chemistry, HemiMG, ilmman, MarkC, mer10, nicko, NSeven, padsoftware, Paul10, pavanindira, Raffaello, sneaky, timle8n1, touchcream
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,219
Posts: 380,707
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:27 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.