Friday 15 March 2013

set the background image on UIToolBar and also set an image in fix coordinate on UIToolBar


UIToolbar *tb=[[UIToolbaralloc]initWithFrame:CGRectMake(042032044)];
[self.view addSubview:tb];
[[UIToolbar appearancesetBackgroundImage:[UIImageimageNamed:@"kanishka.png"]forToolbarPosition:UIToolbarPositionAny/Bottom barMetrics:UIBarMetricsDefault];
UIImageView *img11=[[UIImageViewalloc]initWithFrame:CGRectMake(200510035)];
img11.backgroundColor=[UIColor clearColor];
img11.image=[UIImage imageNamed:@"toolbar.png"];
[tb addSubview:img11];

No comments:

Post a Comment