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

Content view position + AppleDoc #33

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

Conversation

joserc87
Copy link

@joserc87 joserc87 commented Oct 9, 2013

In most of the cases you want to see the modal view in the center, but in some cases you want it to be somewhere else. For example if the view has a textfield, you want it to be in the top, so the keyboard doesn't cover it.
For that purpose I have added properties to define the alignment (horizontal+vertical) of the view. By default it will be centered, but you can change it by just changing the values of alignment and spacing.

Also, I have added comments in the .h file, just to suppress the warnings from the AppleDoc compiler. The code is self explanatory I think, but AppleDoc is a good feature to have in XCode anyway.

Jose Ramon Cano added 2 commits October 9, 2013 15:27
Added some properties to define where do you want the view to be
placed, horizontally (left, center, right) and vertically (top, center,
bottom).
Also you can define the space between the view and the borders (if the
view is not centered of course).
Just adding dummy comments to the .h to supress the warnings from the
AppleDoc compiler.
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.

None yet

1 participant