Posts

Post not yet marked as solved
2 Replies
895 Views
Where is the sample code example for WWDC 2016 video 216 (on advances in UIKit view animation)? Should be called something like Photos and should have an example of an animation that can be interrupted, scrubbed, and restarted.
Posted
by mattn.
Last updated
.
Post not yet marked as solved
2 Replies
5.5k Views
Why does WWDC 2015 video 510 claim that it works to put a UIImage generated by calling UIImage(CIImage:) in a UIImageView? This has _never_ worked, and it still doesn't. The code they use is like this:imageview.image = UIImage(CIImage:ciimage)That displays nothing. The only way to display a UIImage based on a CIImage is to _render_ it, _explicitly_. A UIImageView is not going to magically do this for you. For example, in my own code, where the CIImage is called `blendimage`, this works fine: UIGraphicsBeginImageContextWithOptions(myextent.size, false, 0) UIImage(CIImage: blendimage).drawInRect(myextent) let im = UIGraphicsGetImageFromCurrentImageContext() UIGraphicsEndImageContext() self.iv.image = imBut this does nothing: the image view is blank: self.iv.image = UIImage(CIImage: blendimage)The video surely would not be making this explicit radical claim if it isn't true. But it isn't true. So why do they make it? Is it _supposed_ to work but failing? Or have I just been missing something all these years that would make that line of code magically work?
Posted
by mattn.
Last updated
.
Post not yet marked as solved
3 Replies
2.2k Views
When I use PHPickerViewController to let the user choose a photo, and I run my app in the Simulator, there is some issue with just the first photo in the library. If the user chooses that photo and we say guard let result = results.first else { return } let prov = result.itemProvider print(prov.registeredTypeIdentifiers) prov.loadObject(ofClass: UIImage.self) { (result, err) in     print(result) } we are told that the registered type identifiers are ["public.jpeg", "public.heic"], and then when we ask for UIImage we get an error: "The file ... couldn’t be opened because there is no such file." And the resulting UIImage is nil. The problem arises only for this one photo, and it is the only one with an HEIC representation. Is there some issue with photos that have an HEIC representation? How are we supposed to retrieve the image for these? (The same code works just fine on a device. The issue arises only on the Simulator. I'm using the latest Xcode 12.2 beta.)
Posted
by mattn.
Last updated
.
Post not yet marked as solved
3 Replies
2.3k Views
In WWDC 2018 video 220, minute 28:00, the presenter says "we're going to be introducing a new Instrument for layout".That was back in the beginning of June. It's now the middle of August. We're on Xcode 10 beta 6. I don't see this instrument. Where is it?
Posted
by mattn.
Last updated
.
Post not yet marked as solved
0 Replies
913 Views
I am so sick and tired of "Developer Tools Access needs to take control" dialog appearing when I build and run to the Simulator (Xcode 11 beta on Catalina beta). I say Allow so why doesn't it remember what I say? This seems like a bug.
Posted
by mattn.
Last updated
.
Post marked as solved
1 Replies
1.3k Views
In the Catalina beta, if an HTML file is sitting on the Desktop and I try to open it for rendering in Safari, Safari refuses. The same file opens just fine if it is sitting in my Home folder.Is there a way I can defeat this unwanted "protection"?
Posted
by mattn.
Last updated
.
Post not yet marked as solved
2 Replies
919 Views
The presentation by David Duncan at the start of WWDC video 224 is completely unclear. The bullet points read:Adopt Launch StoryboardsSupport any sizeSupport Split Screen MultitaskingI understand about launch images and letterboxing going away. But I don't understand the implications for iPad.On the one hand he seems to say that split screen multitasking will be absolutely required. This implies that it will no longer be permitted to check Requires Full Screen. But then in the same breath he says something about "unless your app is a game that requires an immersive experience". That implies that Requires Full Screen _will_ still be permitted, in which case, what is the third bullet point saying?Also what will be the fate of iPhone only apps? Will they still be permitted? On iPad they require full screen and are letterboxed. Is that going away? I have apps that make no sense at all on an iPad screen. I'd rather they just not run on iPad than that I be required to turn them somehow in to iPad apps.
Posted
by mattn.
Last updated
.
Post not yet marked as solved
1 Replies
809 Views
Usually new versions of Xcode coexist with old version. But if I try to switch back and forth between Xcode 11 beta 2 and Xcode 10.2.1, I have to go through the "Install additional required components" dialog every time. This is maddening, to say the least. Is this a bug? Can I work around it somehow?
Posted
by mattn.
Last updated
.
Post not yet marked as solved
4 Replies
1.6k Views
In the Optimizing App Launch video from WWDC 2019, two further talks are mentioned:* Multitasking and the Application Lifecycle* Getting the Most out of MultitaskingI can't find either one. Does anyone know where they are?
Posted
by mattn.
Last updated
.