-2

I am want to add UILabel inside UIAlertView in IOS7. My Code is working fine in iOS7 less versions.

  • Did you even try to search? There is more than 10 answers declaring that there is no more addSubView in UIAlertView in iOS7. – Tarek Hallak Oct 10 '13 at 06:39
  • 3
    possible duplicate of [UIAlertView addSubview in iOS7](http://stackoverflow.com/questions/18729220/uialertview-addsubview-in-ios7) – Toseef Khilji Oct 10 '13 at 06:41
  • I try to search, But there is a little confusion i.e. there is a way to add UITextField into UIAlertView in iOS. So, due to this i wanna get confirmation. Because i have to add UILabel into UIAlertView. – Harish Kumar Oct 10 '13 at 10:39

2 Answers2

0

AddSubview is not possible from iOS 7.

How to add subview inside UIAlertView for iOS 7?

Community
  • 1
  • 1
Ravindhiran
  • 5,304
  • 9
  • 50
  • 82
0

In iOS 7 you can use

[alertView setValue:customContentView forKey:@"accessoryView"];

Full explanation is here

Community
  • 1
  • 1
malex
  • 9,874
  • 3
  • 56
  • 77