Post

Replies

Boosts

Views

Activity

iPhone app black screen after switches back from background
My app shows black screen after switches back from background.this happens only when I use my app to record a video and even after I finishes recording successfully before I switch this app to background.If recording function is not used before I switch this app to background, it won't black screen after switching back from background.in Xcode debugger, the main thread looks fine to me.any ideas about what could be wrong? thanks a lot!(lldb) bt* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP * frame #0: 0x00000001b20f4634 libsystem_kernel.dylib`mach_msg_trap + 8 frame #1: 0x00000001b20f3aa0 libsystem_kernel.dylib`mach_msg + 72 frame #2: 0x00000001b229b04c CoreFoundation`__CFRunLoopServiceMachPort + 216 frame #3: 0x00000001b229616c CoreFoundation`__CFRunLoopRun + 1444 frame #4: 0x00000001b22958a0 CoreFoundation`CFRunLoopRunSpecific + 464 frame #5: 0x00000001bc1ed328 GraphicsServices`GSEventRunModal + 104 frame #6: 0x00000001b6386740 UIKitCore`UIApplicationMain + 1936 frame #7: 0x0000000100ca52ec PrivCam`main(argc=1, argv=0x000000016f25f830) at main.m:14:16 frame #8: 0x00000001b2120360 libdyld.dylib`start + 4
0
0
690
Jan ’20
CGAffineTransformScale doesn't work on iPhone12 or iOS 14
on iPhone X, or iOS 13.X , I used CGAffineTransformScale to respond to pinch gesture and enlarge photos on an UIViewController from  UIViewController UIGestureRecognizerDelegate code snippet is as follows and used to work fine, but has no effect on iOS 14 or iPhone12. Any hints?  static CGFloat sPreviousScale = 0.0;     if([recognizer state] == UIGestureRecognizerStateEnded) {         sPreviousScale = 1.0;         return;     }     CGFloat newScale = [recognizer scale] - sPreviousScale +1.0;     CGAffineTransform currentTransformation = self.mImageView.transform;     CGAffineTransform newTransform = CGAffineTransformScale(currentTransformation, newScale, newScale);     // perform the new transform     self.mImageView.transform = newTransform;   sPreviousScale = [recognizer scale];
0
0
480
Apr ’21
Xcode 13.1 is super slow even when typing code
Anyone knows what's going on with Xcode 13.1? after upgrading to Xcode 13.1, it runs extremely slow, especially when I type code, roughly 5 times slower, I need to type and wait for the letters to pop up one by one (literally one by one popping). BTW, performance of compiling doesn't drop much, only the performance of editing drops, that is why this is especially unacceptable . My OS is Big Sur which has been upgraded for a while. and my Mac is pretty new (5 month? ) with 16 GB memory, 8 core i9, 1T SSD. So the hardware is not so bad at all. thanks
2
0
857
Nov ’21
Xcode 14 cannot debug iOS 15.5
I installed Xcode 14, and cannot debug my iPhone with iOS 15.5, the error says, these two are not compatible. in the developer website, it says, Xcode 14 can debug up to iOS 16. why is this discrepancy. thanks a lot ! the Xcode website says Xcode 14 supports iOS16 SDK Xcode VersionMinimum OS RequiredSDKArchitectureDeployment TargetsSimulatorSwiftXcode 14macOS Monterey 12.4iOS 16
1
0
795
Jul ’22
How to receive a mix of different application defined type files through air drop
I cannot define my application defined type files like .AAA and .BBB and I can air drop multiple .AAA files or multiple .BBB files to my iPhone and use my application to received these files. but if I mix .AAA and .BBB files and air drop them to my phone. My phone always prompts " cannot receive all these items at once. So, how to receive a mix of my application defined type files through air drop? thanks
2
0
703
Aug ’23