03 July 2011

Uncomplicated

Sure enough, I had to give up on that brilliant idea of color table entries. After having put all of the work into implementing it, it just looked stoopid. But I'd have probably wanted to move the contents of the table into a .plist file, anyway, so it's not as though the work was all for naught.

Unintended fun with Xcode 4.

I was working on a project, when something went very wrong -- in retrospect, I'm not sure it was even an error that I had introduced -- and once again, I had to restore my project files from a back-up.

I tried restoring the project files from three different sources, all, inexplicably, with the same errors! -- before I realized that the problem seemed to be that I was opening them from the same location as the project that had gone wrong (having copied over the project folders). When I opened those files from other locations, there were no errors.

Eventually, I chose to rename the project folder, and that solved the problem. (Who knows -- that might even have solved the problem with the original project files, as well.) Later on I was able to restore the original folder name, and while the error messages came up again, briefly, the project did build successfully.

I don't understand why Xcode seems so completely and utterly dependent on file locations. (At one point I had tried to reorganize some files outside of the program, just putting them in folders, but relinking to them proved to be so much trouble that I gave up on the whole idea.)

02 July 2011

Debugging

I had set up UIModalTransitionStylePartialCurl as a sort of detail view, but without an explicit way to dismiss it, because just touching the screen seemed enough. But with iOS 5 (NDA, I know, I know -- but really, who reads this?), it just does -- nothing. It just sits there if you don't set up a method to dismiss it.

In the process of implementing one (a big ol' invisible full-screen button), I discovered that the page curl responds to the position of the button, so I can exercise some control over the result. The smaller the button, the smaller the size of the view that's revealed.