开发者

Interface builder problem when Iphone app converted to Universal app

开发者 https://www.devze.com 2023-03-04 21:12 出处:网络
I built an iphone app and in one of the views(buit using IB), I put an activity indicator ( little spinner indicating network activity) in the middle. It works fine on my iphone but once I use an Ipad

I built an iphone app and in one of the views(buit using IB), I put an activity indicator ( little spinner indicating network activity) in the middle. It works fine on my iphone but once I use an Ipad the spinner goes to the to left corner. So the spinner never correspond to the intended location on Ipad no matter where I move it in IB.

Any s开发者_StackOverflowuggestion to solve this problem? Do I have to rebuild the app specifically for ipad? Thanks


In Interface Builder, select the Activity Indicator and open the Size Inspector.
Default shortcut in Xcode 4 is ⌥ ⌘ 5, icon looks like a ruler.

Second section, on the left, a box labeled "Autosizing". The bars around the outside turn each anchor on or off, and the arrows inside turn autoresizing on/off for either direction (x / y)

With the indicator centered in the view, turn all four anchors on.
Solid red is on, semitransparent is off.

0

精彩评论

暂无评论...
验证码 换一张
取 消