iOS Question My PHAssets class died at iOS 18 - MS Copilot to the rescue

JackKirk

Well-Known Member
Licensed User
Longtime User
I wrote a PHAssets class back in 2019 to handle access to the photo albums.

This has always worked fine on my old iPhone 7 running iOS 15.

Recently I had to get a more modern iPhone 12 so I could access iOS 18.

iOS 18 broke my class - which was a major dilemma because I don't have much of a handle on Objective C.

After a couple of days mucking around I manage to isolate the first Objective C routine that bombed and in utter frustration asked MS Copilot if it could see what was wrong.

It quickly came back with a number of improvements which wonder of wonders fixed the problem.

So I got it to revise all the other Objective C routines in the class - and am happy to report my new class works fine on iOS 15 and 18.

The new PHAssets class is at https://www.b4x.com/android/forum/t...ment-library-based-on-phasset.110812/#content

I SHOULD ADD: my experience with Copilot is now quite extensive covering HTML and Javascript primarily but also Windows Powershell and occasional B4X stuff - and now Objective C.

I am uniformly impressed at my results with one caveat - you have to keep the questions relatively simple - in this case the Objective C routines rarely exceeded a dozen lines.

I don't think it would handle a request to write a non trivial subroutine very well - let alone a whole project.
 
Last edited:
Top