Skip to content
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

Changes when adding strings and images #22

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jallen
Copy link

@jallen jallen commented Jan 31, 2013

I took another stab at this by creating a branch instead of using my forked master (git noob here).
I also found a weird bug that was causing buttons with just text in a titled Popover to be resized past the width of the popover. Take a look at commit bfe1db9 for more info.

Changes:

  • kImageAboveLabel - bool value that positions icons/images above or to the left of labels
  • kImageTitlePadding - padding between icons/images and titles in both horizontal and vertical
  • UIButtons generated for both horizontal and vertical settings

Signed-off-by: Jared Allen <jared@redcact.us>
Signed-off-by: Jared Allen <jared@redcact.us>
- added kImageAboveLabel config to set if images should be display above or too the left of titleLabels.
- added kImageTitlePadding config to set the padding between images and titleLabels in either configuration mentioned above.

Signed-off-by: Jared Allen <jared@redcact.us>
Signed-off-by: Jared Allen <jared@redcact.us>
… in Popover with title.

For some reason the buttons frames were being resized past the Popover bounds causing issues with text alignment. Now all UIButtons are resized to the full width of the Popover view and text alignment is handled by the UIButton.

Signed-off-by: Jared Allen <jared@redcact.us>
Signed-off-by: Jared Allen <jared@redcact.us>
@ocrickard
Copy link
Contributor

Hey man, sorry for the long wait! I suck at responding to these...

Since there have been a couple of changes since you submitted this, I just merged by hand. Mind giving it a sanity check before I merge into master?

https://github.com/runway20/PopoverView/tree/jallen-buttons-with-icons

@jallen
Copy link
Author

jallen commented Apr 20, 2013

This works if you just want an images above labels.
It not using the image as part of a UIButton so you don't get the nice over effect with the tap.

And it's also missing support for kImageAboveLabel in the config file so images can be rendered to the left of the label.

If you want and can rebase and create a new pull request with the latest master.

It's up to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants