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