0

I want to clone this control but i don't know how to make a 0.5 pixels distance between two views. Any advices?

Another problem is I can't figure out how to do that blur effect on everything that is below current view. I tried to use alpha but it doesn't look the same.

Thanks!

Community
  • 1
  • 1
Meeshoo
  • 129
  • 11

1 Answers1

0

I want to clone this control but i don't know how to make a 0.5 pixels distance between two views. Any advices?

In Storyboard when you hold an widget (For e.g.: UITextField) and press alt at the same time, it will show you its alignments with the other widgets. From there you can see whether its having specific pixel distance or not.

Another problem is I can't figure out how to do that blur effect on everything that is below current view. I tried to use alpha but it doesn't look the same.

  • Create a popup view (inherited by UIView)
  • Set background color as [UIColor clearColor]
  • Add an imageView in background to fill entire view
  • Set whiteColor as a background color for this imageView
  • Set alpha property as per your requirement (for e.g.: imageView.alpha = 0.5f; )

Hope this is what you're looking for.

Mrunal
  • 13,982
  • 6
  • 52
  • 96