Thursday 31 January 2013

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


UIToolbar *tb=[[UIToolbar alloc]initWithFrame:CGRectMake(0, 420, 320, 44)];
[self.view addSubview:tb];
[[UIToolbar appearance] setBackgroundImage:[UIImage imageNamed:@"manoj.png"] forToolbarPosition:UIToolbarPositionAny/Bottom barMetrics:UIBarMetricsDefault];
UIImageView *img11=[[UIImageView alloc]initWithFrame:CGRectMake(200, 5, 100, 35)];
img11.backgroundColor=[UIColor clearColor];
img11.image=[UIImage imageNamed:@"kanishka.png"];
[tb addSubview:img11];

No comments:

Post a Comment