Wednesday, March 25, 2015

Example of an iOS Code App

Try this out:

Horizontal Scroll Cell

Example of what it might look like

Description:
    ExampleCode:

    -(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath

    {

     HorizontalScrollCell *hsc =[collectionView dequeueReusableCellWithReuseIdentifier:@"cvcHsc"

     forIndexPath:indexPath];

    

     [hsc setBackgroundColor:[UIColor colorWithRed:255.0f/255.0f green:255.0f/255.0f blue:255.0f/255.0f alpha:0.5f]];

     [hsc setUpCellWithArray:images];

    

     [hsc.scroll setFrame:CGRectMake(hsc.scroll.frame.origin.x, hsc.scroll.frame.origin.y, hsc.frame.size.width, 164)];

    

     hsc.cellDelegate = self;

    

     return hsc;

    }

   

    please refer the demo for detail usage.  [Code4App.net]



Good luck!!!

You might need to download Xcode first: https://developer.apple.com/xcode/downloads/

If you might have any questions, please feel free and comment below and I will make sure and get back to you as soon as possible, thanks.

Source: http://code4app.net/ios/HorizontalScrollCell/5512750de24741ad46932c4a

2 comments:

  1. Replies
    1. Thanks marilynndarevalo, I appreciate that you have commented on my blog site. If you have any suggestions on how we can make this site better, please feel free and comment on that. Thanks.

      Delete