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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-01-2010, 03:48 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 60
ZubiZubi is on a distinguished road
Default ZZGridView - UITableView + image grid view + sections support

All,
I had the need for UITableView with grid + section support recently for my app "Gandhi Nation" (in appstore now). I couldn't find anything readily available. So I started with UITableView and customized the cell.

Thought you might be interested. So I separated the code into standalone project that you can download and use it if interested.

To see the demo, unzip the file and open/run the project in XCode.

Here is the link to get source code.

__________________
My Apps in AppStore

Last edited by ZubiZubi; 11-02-2010 at 06:06 AM.
ZubiZubi is offline   Reply With Quote
Old 08-03-2011, 06:07 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 3
AnilNaidu is on a distinguished road
Default calling images dynamically in grid view

Hi,

i want to call "thumbnail images" dynamically in place of "button".I used the following code and not able to call images dynamically.

UIImage *image = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://www.mysite/bg.png"]]];
[imageView setImage:image];


Quote:
Originally Posted by ZubiZubi View Post
All,
I had the need for UITableView with grid + section support recently for my app "Gandhi Nation" (in appstore now). I couldn't find anything readily available. So I started with UITableView and customized the cell.

Thought you might be interested. So I separated the code into standalone project that you can download and use it if interested.

To see the demo, unzip the file and open/run the project in XCode.

Here is the link to get source code.

AnilNaidu is offline   Reply With Quote
Old 08-04-2011, 02:09 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 3
AnilNaidu is on a distinguished road
Default How to get different images in place of same button

How to get "different images" in place on same "button".These images should become full view after cliking the button.





Quote:
Originally Posted by AnilNaidu View Post
Hi,

i want to call "thumbnail images" dynamically in place of "button".I used the following code and not able to call images dynamically.

UIImage *image = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://www.mysite/bg.png"]]];
[imageView setImage:image];
AnilNaidu is offline   Reply With Quote
Old 08-04-2011, 04:44 AM   #4 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

i haven't downloaded it, but I think that you should look where it create the cell and probably each UIImageView has a unique tag, so take the UIImageView with tag x of the cell y, and set an image to it, don't use dataWithContentsOfURL that block the main thread and so the UI during download, instead use NSURLConnection or ASIHTTPRequest to download images.
__________________
dany_dev is offline   Reply With Quote
Old 08-05-2011, 12:54 AM   #5 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 3
AnilNaidu is on a distinguished road
Default Images in place of buttons

I tried to call images in place of buttons but application is crashing .

These images i called from NSURL in Loadview method

NSData* imageData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://www.techieask.com/wp-content/uploads/2010/12/Sony-Ericsson-Xperia-X81.jpg"]];

UIImage* image = [[[UIImage alloc] initWithData:imageData] autorelease];
[imageData release];


[self performSelectorOnMainThread:@selector(displayImage withObject:image waitUntilDone:NO];


application is crashing
AnilNaidu is offline   Reply With Quote
Reply

Bookmarks

Tags
grid view, gridview, uitableview

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 339
12 members and 327 guests
7twenty7, chiataytuday, condor304, Creativ, Domele, dreamdash3, laureix68, LEARN2MAKE, mistergreen2011, mottdog, palme2elie, Paul Slocum
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,660
Threads: 94,119
Posts: 402,896
Top Poster: BrianSlick (7,990)
Welcome to our newest member, laureix68
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:24 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0