Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
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.
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.
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.
Replies
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];
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeThese 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
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome