Latest 1.0
Homepage https://github.com/mpatelCAS/MPProgressViewCell
License MIT
Platforms ios 8.0, requires ARC
Dependencies DACircularProgress, SDWebImage
Authors

MPProgressViewCell

It’s Simple UIImageView Category Class which is for downloading image from remote server using SDWebImage and DACircleProgressView

Alt

Installation

MPProgressIndicatorCell is available through CocoaPods ,To install it, simply add the following line to your Podfile:

pod "MPProgressIndicatorCell"

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Then import the ProgressViewCell into your source files (or into your bridging header if you’re using with Swift and not using frameworks with CocoaPods):

#import "MPProgressCell.h"

If you are using Swift and frameworks, then you can just import the browser into your Swift source file:

#import "MPProgressIndicatorCell/MPProgressCell.h"

MPProgressViewCell is designed to be presented within a navigation controller. Simply set the delegate (which must conform to MPProgressCellDelegate)

See the code snippet below for an example of how to implement the MPProgressViewCell. There is also a simple demo app within the project.

What’s new in 1.0

Added a new method in which you can also show processing with placeholder image

Delegates

   [imageview mp_setImageFromURL:URL];
   [imageview mp_setImagefromURLwithPlaceholder:URL
                               placeholderImage:[UIImage imagenamed:@"placeholder.png"]];

Table View Cell

progressCell.h


@class MPProgressCell;

@interface progressCell : UITableViewCell

@property (weak, nonatomic) IBOutlet MPProgressCell *imgView; // bind the image view with MPProgressCell Category Class

Table View Controllor


#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 5;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    progressCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MPCell"
                                                     forIndexPath:indexPath];

     [cell.imgView mp_setImageFromURL:[NSURL URLWithString:@"http://farm4.static.flickr.com/3590/3329114220_5fbc5bc92b.jpg"]];

   /*  Now you can also show processing with placeholder image
     [cell.imgView mp_setImagefromURLwithPlaceholder:[NSURL URLWithString:@"http://farm4.static.flickr.com/3590/3329114220_5fbc5bc92b.jpg"] placeholderImage:[UIImage imageNamed:@"22.png"]]; */

    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 110.0f;
}

Author

Mayank Patel, [email protected]

License

MPProgressViewCell is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MPProgressIndicatorCell",
    "version": "1.0",
    "summary": "A custom UIPickerView with a simple list of options, along with a toolbar for Done/Cancel and a faded backdrop view.",
    "homepage": "https://github.com/mpatelCAS/MPProgressViewCell",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Mayank Patel": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mpatelCAS/MPProgressViewCell.git",
        "tag": "1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MPProgressViewCell/*",
    "requires_arc": true,
    "dependencies": {
        "DACircularProgress": [
            "~> 2.3"
        ],
        "SDWebImage": [
            "~> 3.7",
            "!= 3.7.2"
        ]
    }
}

Pin It on Pinterest

Share This