If I initialize and add this SPTextField with autoscale to the stage:
SPTextField *tf = [[SPTextField alloc] initWithWidth:self.selectBoundingBox.width * 2 height:12 text:@"" fontName:@"Arial" fontSize:12 color:0xffffff];
tf.autoScale = YES;
[self addChild:tf]
with iOS 5.0 there is no problem, but with iOS 7.0+, my app hangs. It doesn't crash, but I see the CPU increase and it seems like there is some sort of infinite loop going on with Sparrow internals.
There are three ways I can avoid this problem that I have found.
- Do not use autoScale
- Set the height of the textfield to something larger like 14
- Set the intial text to @" " or some other non empty string.
This occurs in the simulator (iOS 7.0 or greater) and actual device.
My other problem is with regards to SPTouchEvents. On my actual device (iPhone 4 with iOS 7.0), I have some SPDisplayObjects at the edge of the screen. If I tap them like nomral, they dont fire off an SPTouchEvent with phase SPTouchPhaseEnded, only SPTouchPhaseBegan.
They will only fire off an event with SPTouchPhaseEnded if I touch, and hold my finger there for a second or two before removing it.
This only occurs with stuff at the edge of the screen.