provideal / mmgridview Goto Github PK
View Code? Open in Web Editor NEWA simple grid view / dashboard component for iOS
A simple grid view / dashboard component for iOS
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.
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?
how can i implement table with fetchedResultsController
since fetchedResultsController needs section & rows...
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.
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
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 ?
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.
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.
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!
Implement support for "interactive" controls like UIButton as cell subviews.
I want to be able to use this as a vertical scrolling view instead of a horizontal paged. How?
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!
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
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.
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
Button appears in MyViewController, but when I'm taped on it nothing gonna happen.
Can U help me fix that?
Thank you.
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];
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?
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 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.