ios - how to use a xib file for all device sizes in xcode -


i appreciate if can tell me how can use 1 xib file target different device sizes. creating custom keyboard extension using xib file having view property of "freedom". view loads great in iphone 4,4s,5 , 5s. whenever run app iphone6 or 6s there blank space @ right hand side. (please see attached screenshot, missing area shown in red), looks keyboard doesn't stretch according screen size.

how can fix that? disabled auto layout , use size classed option. new developer , coding using swift. lot

keyboard should stretch red area

i use autolayout this, not disable in xib. reason why have space @ end of view, not expanding automatically sides, has been set statically e.g. setting frame.

i have @ link in mean time re-enable autolayout keyboard view container ctrl click drag main view , select leading(left), trailing(right), top & bottom space container. below popup menu ctrl clicking constraints select triangle @ bottom right enter image description here update frames, relayout view. might not layout keyboard keys correctly start.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -