UITextAlignment to NSTextAlignment
UILineBreakMode to NSLineBreakMode
Replace deprecated dismissModal