-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom UIView instead of image? #184
Comments
Yeah, this is doable by having custom cells. Post code if you get stuck. On Dec 5, 2012, at 10:25, "Vedran Burojević" [email protected] Is it possible to load custom UIView in cells? I've been trying for 2 days but haven't succeeded... — |
Your custom view must inherit AQGridViewCell, that's all. Be careful, cells are cached and reused so do not rely on keeping any context inside as is will get wiped of by simple scroll on grid view. I'm talking about possible progress views and stuff. |
Ok, I will try, thank you. Another questions since I posted this one already. I have overridden:
and it does show 2 in one row, but lot of space is blank on the right side. What should I do so these two items fill the screen? |
Create larger cells, aqgridview will adapt to changes. You can also set content insets as desired. Ivor Prebeg On Dec 5, 2012, at 7:45 PM, Vedran Burojević [email protected] wrote:
|
The better approach might be emitting different sizes in the portrait size On Dec 5, 2012, at 10:45, "Vedran Burojević" [email protected] Ok, I will try, thank you. Another questions since I posted this one already. I have overridden: (NSUInteger) numberOfItemsPerRow // work out how many rows we can fit return 2; //Testing for iPad and it does show 2 in one row, but lot of space is blank on the right side. What should I do so these two items fill the screen? — |
I tried modifying setDesiredCellSize to make cells bigger but nothing happens. Can you point me where should I edit the code to make cells brigger? It's difficult without doumentation? There is no documentation for AQGridView right? I tried to find it but failed. |
not sure how does your code look like, but returning cell with larger frame on cellForItemAtIndex callback should do it. Ivor Prebeg On Dec 5, 2012, at 7:53 PM, Vedran Burojević [email protected] wrote:
|
I tried: but I get an empty view |
Is it possible to load custom UIView in cells?
In my example, thumbnail with controls to download and share image at the bottom of the image.
I've been trying for 2 days but haven't succeeded...
The text was updated successfully, but these errors were encountered: