Coder Social home page Coder Social logo

mmgridview's People

Contributors

mosamer avatar siuying avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mmgridview's Issues

Load Images from the Server

Can you please help me with some code, I would like to reload this Grid with using the images downloaded from the server.Similar to Lazy Loading.

loading UIWebView into cell.backgroundView not working

i have sat here trying to populate the cell.backgroundView with a UIWebView with no success. The data is there because i can assign the cell.textLabel the address of the web page. how do i actually show the 'webPage' in the cell.backgroundView?

MMGridView Xcode Project No errors but does not run in Simulator

Hello there.

I downloaded the MMGridView Sample project. It has No errors and builds successfully, however when I push the RUN button, The Simulator does not launch the app. It just does nothing, and the app does not show it is running.

Please help.

Thank you.

slowly launching of cell

when i launch my app ,the cell appear slowly ,idon't know why??if you hav an idea to fix that please notice me,Thanks

quickly select two or more GridCell

Dear,
in my app, when the user select a cell , a new viewcontroller get pushed by the navigationController ,,, but I noticed when i quickly select two or more cell before the animation of pushing, the app crash due to not support of pushing the same viewcontroller twice . how can I disable the userInteraction for all the cells when on is clicked, and enable it back when the user pop back to the grid ?
MMGridError

Lag problem with UI refresh

In my app I discovered that I was hitting a totally random lag with the UI update. The lag was anywhere from nothing (instant update) to over 20 seconds.

Eventually I came across this post which helped me resolve the issue.
http://stackoverflow.com/questions/7629485/what-is-the-proper-way-to-make-it-so-core-graphics-does-not-lag

Basically MMGridview should not be setting up the grid cells in the drawRect: method.

I simply changed the name of this method to drawCells and called it directly rather than via setNeedsDisplay, and presto, no more lag.

Love this class by the way. Thanks for sharing it.

Needs cell dragging/moving.

There should be an "editing" mode. When this is on, the user should have the capability to drag the cells around the view, repositioning them.

Works fine with iPad

If I implement these classes for iPad, it will works fine with the basics configuration, or I will have to change the GridView classes?

Thanks!

Assign image in cell's backGround

Hi René,

I'm a bit confused, I still couldn't find out how to set the cell's background with an image.

I'm using this code in the cellAtIndex delegate method :
cell.backgroundView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"myImage.jpg"]];

The weird part is that if I use [UIColor redColor] for example, it'll work perfectly. Any Idea of what I'm might be doing wrong?

Thanks!

Push data to detailView

Hi

I'm struggling to push data when a cell is selected, in a tableview didSelect it would be

detailViewController.treeData = [self.ds objectAtIndex:[self.tableView indexPathForSelectedRow].row];

what would it be in MMGridview

Thanks

reloadData does not work

When you are waiting for data, for example from internet and use reloadData function, it doesn't work until I change of page the cells appears.

Adding buttons to cell

Hi René,
I'm trying to add buttons to cell.
In "MMGridViewDefaultCell" I added UIButton *del, and @Property.
In "MMGridViewDefaultCell." I synthesized it and adde to initWithFrame
//Delete button
self.deleteIssue = [[UIButton alloc] initWithFrame:CGRectNull];
self.deleteIssue = [UIButton buttonWithType:UIButtonTypeCustom];
[self.deleteIssue addTarget:self action:(@selector(deleteIssueAction)) forControlEvents:UIControlStateNormal];
[self.deleteIssue setImage:[UIImage imageNamed:@"deleteIssue.png"] forState:UIControlStateNormal];
[self addSubview:self.deleteIssue
In layoutSubviews I added:
//Delete button
self.deleteIssue.frame = CGRectMake(-5, -5, 17, 17);
In MMGridViewCell.h I added

  • (void)deleteButtonPressed {
    SEL deleteIssueAction = @selector(deleteBut:);
    [gridView performSelector:deleteIssueAction withObject:self];
    NSLog(@"deletePressed");
    }

Button appears in MyViewController, but when I'm taped on it nothing gonna happen.
Can U help me fix that?

Thank you.

How to change the image size to auto-fill the cell backgroundcolor?

Hi,

In the cellAtIndex method, I use the below code to set the cell background color. The problem is that the image may be repeated if the size is not proper. Can you please advise a way to avoid image repeating? Sorry, it may be not related to the MMGridView, appreciate your help in advance.

CGSize newSize = CGSizeMake(myCachedImage.size.width_0.3, myCachedImage.size.height_0.3);
UIGraphicsBeginImageContextWithOptions(newSize, NO, 0.0);
[myCachedImage drawInRect: CGRectMake(0, 0, newSize.width, newSize.height)];
UIImage *smallLoadingImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

cell.backgroundView.backgroundColor = [UIColor colorWithPatternImage:smallLoadingImage];

ARS compatiblity

Anyone interested in making this compatible with iOS5 automatic reference count?
I have convert the code with the xcode automatic conversion, but I'm not sure if I tweaked the code right. Can anyone give me some suggestion?

Loading images into grid

Hi

Im trying to load images into my gridview , but they are not showing the image like your "Fit plus" image. I have tried resizing my image to the same size as the grey Club image in demo but the resolution is not that great. Is there another way to sort this ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.