1. Use a UIImageView
of required rect. Set the background image to the gradient gray colour image.
UIImageView*myImageView=[[UIImageView alloc] initWithFrame:yourFrame];
[myImageView setImage:[UIImage imageNamed:@"grayBackground.png"];
[self.view addSubview:myImageView];
2. Use a round rect. UITextField
make it a subview of the image view. Use a place holder as "Write a reply..." make it a subview to your imageview.
UITextField*myField=[[UITextField alloc] initWithFrame:yourRect];
[myField setBorderStyle:UITextBorderStyleRoundedRect];
[myField setPlaceholder:@"Write a reply..."];
[myImageView addSubview:myField];
3. Use a UIButton
with type Custom
and the send image as its background image, make it a subview to your imageview.
UIButton*myButton=[UIButton buttonWithType:UIButtonTypeCustom];
[myButton setFrame:yourRect]
[myButton setBackgroundImage:[UIImage imageNamed:@"sendImage.png"] forState:UIControlStateNormal];
[myImageView addSubView:myButton];