How to set images to uialertview button in iOS?

How can I set images to UIAlertview buttons without using custom buttons?

Can anyone help me?

Answers


Please try to use this one. I think it may help you.. You can do using like this without using custom button.

for (UIView *view in [alert subviews])
{
    if ([view isKindOfClass:[UIButton class]])
    {            
        [view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"imageName"]]];
    }
}

Need Your Help

CTE Recursion to get tree hierarchy

sql-server common-table-expression

I need to get an ordered hierarchy of a tree, in a specific way. The table in question looks a bit like this (all ID fields are uniqueidentifiers, I've simplified the data for sake of example):

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.