ios - fill part of a UIView with color with animation -


i need create effect of filling uiview color, animation. example battery image filled background color .

so can see problem 2 :

  1. background color of uiview part of ( 10% / 45% /etc )
  2. make animation

how color part of uiview natively? (obj-c)

uiview *view=[uiview alloc] init]; view.backgroundcolor=[uicolor redcolor]; //is colouring of . 

creating 2 views problem,because need animate whole thing fills color .

you use 2 views, not problem if put second view subview first. way can animate outer view , inner follow.

to show battery level animate frame of inner view.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -