xml - IPhone- Rss sample code, modify to display images... PLease help! -


I am trying to create an application with text and images in a table that displays RSS feeds , But I'm really struggeling with it! I found a very good [sample code-project] [1] that I really recommend-- but im struggeling it can only getting text to display images in tablecells instead

I have any help !!

Reeeeally happy with

Add cells to your table, and Set your property to image you want to do this in your own way:

  - (UITableViewCell *) tableView: (UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *) indexPath {static NSString * MyIdentifer = @ "MyIdentifier"; UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier: MyIdentifier]; If (cell == zero) {cell = [[[UITableViewCell alloc] initWithFrame: CGRectZero reuseIdentifier: MyIdentifier] autorelease]; UIImageView * imgView = [[UIImageView alloc] initWithFrame: CGRectMake (3,3,75,75)]; ImgView.tag = 7; } [Cell Settext: (NSString *) [yourTextArray objectAtIndex: indexPath.row]; UIImageView * theImgView = (UIImageView *) [cell viewDesign: 7]; TheImgView.image = (UIImage *) [yourImageArray ObjectItIndex: indexPath.row] Return Cell; }  

Check for an asynchronous approach


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -