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

How to set Text Alignment? #19

Open
vikysaran opened this issue Apr 12, 2016 · 1 comment
Open

How to set Text Alignment? #19

vikysaran opened this issue Apr 12, 2016 · 1 comment

Comments

@vikysaran
Copy link

Hi,
Can someone tell me how to set text alignment on this control. I found it on line# 251 and line# 262 inn NYAlertView.m but want to do it from my ViewController because on some ViewControllers I want Left text alignment and in some ViewController I want center.

@vikysaran
Copy link
Author

It is done now 👍
Needed to create another setter and getter for UITextView in NYAlertViewController

add in NYAlertViewController.h
@property (nonatomic) NSTextAlignment textAlignment;

and add in NYAlertViewController.m

- (void)setTextAlignment:(NSTextAlignment)textAlignment
{
    self.view.messageTextView.textAlignment = textAlignment;
}

Above stuff will start displaying **alertViewController.textAlignment =** into your code.

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

No branches or pull requests

1 participant