After installing the 3.0 SDK for Apple iPhone, evidently still not perfectly stable, I immediately found some problems, both in the compilation of the code is in the general XCode. The most important - which I promptly reported with a "home" to Apple, developers at the center - the creation of buttons through code. Here's an excerpt of the code is not compatible with the SDK 3.0:
1 2 3 4 | [ [ UIButton buttonWithType : UIButtonTypeRoundedRect ] initWithFrame : CGRectMake ( 0 , 0 , 100 , 40 ) ] ; UIButton * myButton = [[UIButton buttonWithType: UIButtonTypeRoundedRect] initWithFrame: CGRectMake (0, 0, 100, 40)]; @ "Bottone" forState : UIControlStateNormal ] ; [MyButton setTitle: @ "Button" Forst: UIControlStateNormal]; / / Other settings myButton ] ; [Self.view addSubview: myButton]; |
By filling out this code with the SDK 2.2.1 you get a classic button with the label "Button". With the SDK 3.0, the button is created, but the label disappears. la situazione sembra migliorare, nel senso che la label viene resa apparentemente in modo corretto. Using as buttonWithType type UIButtonTypeCustom seems to improve the situation in the sense that the label is apparently made correctly. It is still strange to the sudden failure of the type UIButtonTypeRoundedRect . I am still awaiting a response from Apple ... I just novelty; place!










[...] Mentioned in the post Apple iPhone SDK 3.0: first the compatibility of Apple 3.0 SDK show different behaviors with respect to release 2.2.1. The support of [...]