ios - CAShapeLayer in Interface Builder? -



ios - CAShapeLayer in Interface Builder? -

i'm creating custom keyboard.

option - create graphics keys back upwards platform. create separate graphics landscape mode - , swap them place when keyboard rotates.

i'd prefer not have create graphics.

option b - build custom uiview class utilizes cashapelayer create keys , resize accordingly when keyboard rotated.

my problem have write lot of code position of keys programmatically.

does create sense layout custom views in interface builder, size them appropriately, , have shape layer match bounds of view?

or there improve way?

i'd build 2 xibs - 1 landscape, 1 portrait , swap them on rotation.

given may or may not see different screen sizes iphone6, i'd opt alternative b, write code 1 time , happy iphone6 ready on day 1.

ios ios8 xcode6

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -