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?


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):