Post

Replies

Boosts

Views

Activity

manage sandbox account clear purchase history not working?
I would like to know whether and how people are getting the sandbox account > manage > clear purchase history feature to work. I clear purchase history (either on my device or at app store connect), and I delete my app from my device. I then run my app from Xcode on my device, and it detects at launch the existence of the purchase, and so I cannot test my purchase user interface. Does this thing actually work as advertised?
3
10
273
Nov ’24
something wrong with just first photo in Simulator photos library?
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.)
3
1
2.5k
Nov ’20
Displaying a UIImage from CIImage in a UIImageView
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?
2
0
6.5k
Jul ’15