Tuesday 15 June 2010

ios6 - iOS UIKit controllers to present news feed with photos -


After

I developed a social application for iOS to create a newbie and iPhone (using the iOS 6 SDK) I am

One of the main pages of my application is the vertical scroll news feed, which is sorted by time, which should usually display status updates. Each status update presents the user name, user thumbnail photo, some content text and possibly some photos or videos with some buttons that share or share with the list of expandable comments.

Status update content is all stored in a restartful remote server

This made me some sense of implementing it with my UITableViewcontroller, that also provides refresh for free :

  1. I can create a custom subtitle style UITableViewCell with a large image / video below (something like Facebook or Instagram)? Are there any code examples for creating this customized cell?

  2. Is it UITableViewCell / UITableViewController, which should be used by other iOS UIKit controllers in order to present this, should not be used, then the news feed?

  3. Perhaps something good is ready to use Open Source Framework - which would you recommend?

    Thanks a bunch in advance, asph

    These are the many tutorials you can download the source code and can read the apple UITableView and here you can see the tutorial. Below is the default image, title and subtitle shown for default

      - (UITableViewCell *) tableView: (UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *) indexPath {NSString * CellIdentifier = @ "Cell"; UITableViewCell * cell = [tableview] dequeueReusableCellWithIdentifier: CellIdentifier]; If (cell == zero) {cell = [[UITableViewCell alloc] initWithStyle: UITableViewCellStyleSubtitle reuseIdentifier: CellIdentifier]; } Cell.imageView.image = [UIImage imageNamed: [imageArray objectAtIndex: indexPath.row]]; Cell.textLabel.text = [headlineOutIndindex: indexpath.ro]; Cell.detailTextLabel.text = [Subtitle ObjectOptimize Path]; Return cell; }   

    If you want to create a custom cell, use the SDWebImage library for your needs and

      set the image according to the cache UserImageView = [ [UIImageView alloc] initWithFrame: CGRectMake (5,0,70, 70)]; NameLbl = [[UILabel alloc] initWithFrame: CGRectMake (95, 20, 200, 20)]; [NameLbl setText: nameStr]; [UserImageView setImageWithURL: [NSURL URLWithString: responseString] Placeholder image: [UIImage imageNamed: @ "placeholder.png"]]; [Cell.contentView addSubview: nameLbl]; [Add Cell.contentView SUBview: UserImageView];    

No comments:

Post a Comment