Question

In my app i want to add something similar to the animated view that appears and disappears under the navigation bar , similar to the Facebook Messanger one :

Was it helpful?

Solution

Create your own view (Google it)

UIView *yourCustomView= [[UIView alloc] initWithFrame: CGRectMake ( 0, 0, 200, 150)];

The two first 0,0 are for positioning The two last numbers are for width and height

Add your custom to your main view

[self.view addSubview:yourCustomView]

Add what you want in your custom view (label, buttons) This quite the same than for UIView. (UILabel is an UIView)

Create an animation Create a view with Raywenderlinch

Then fire it with your IBAction from the button

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top