I am able to set custom font for title and message of the alert but i am not able to set custom font for alert action / button. Is there a way to do so? Please help! Many thanks!!
Asked
Active
Viewed 1,493 times
2
-
1Check this https://stackoverflow.com/questions/21423681/how-do-i-show-all-the-buttons-text-with-normal-font-on-uialertview-in-ios – MOHAMMAD ISHAQ Jul 27 '17 at 07:36
-
This is outdated. UIAlertView has deprecated. Now iOS is having UIAlertController. I am asking question the UIAlertAction. Do you have any other ideas? – LinhTran Jul 27 '17 at 07:42
-
have you tried this https://stackoverflow.com/questions/37744237/how-to-edit-uialertaction-text-font-size-and-color – MOHAMMAD ISHAQ Jul 27 '17 at 07:44
-
1you might be able to update via KVC as above link and also in following https://stackoverflow.com/questions/26460706/uialertcontroller-custom-font-size-color . Best of luck! – MOHAMMAD ISHAQ Jul 27 '17 at 07:46
-
There is no effecient way to do accomplish your task. Check my ans here https://stackoverflow.com/questions/45214154/how-to-edit-uialertaction-button-font-size/45214307#45214307 – luckyShubhra Jul 27 '17 at 07:49
-
@MOHAMMADISHAQ, yes i've found answer from other link about the same way doing it by KVC. It works. Thank you very much!!! – LinhTran Jul 27 '17 at 07:58
-
@luckyShubhra i got problem solved. thanks! – LinhTran Jul 27 '17 at 07:58
-
The customization for `UIAlertAction` uses private apis that might get your app rejected in publishing in the App Store. – nayem Jul 27 '17 at 08:02
-
Consider @nayem advise.Using private apis might get your app rejected in publishing. – luckyShubhra Jul 27 '17 at 08:08
-
I will take that under consideration. Thanks for good advice! @nayem – LinhTran Jul 27 '17 at 08:18
-
Thank you too @luckyShubhra – LinhTran Jul 27 '17 at 08:18
-
Welcome man :) .... – MOHAMMAD ISHAQ Jul 27 '17 at 10:36