Today I discovered that I had a form of comment moderation turned on on the blog without knowing it. And, as a result, I never went to the moderation page to check out posted comments, and no comments anyone posted showed up on the blog! Bummer!
I now have moderated all the previous posts.
I tweeked the settings today and that should not be a problem anymore. Please feel free to comment on my posts. Ask questions, and I'll see if I can answer them.
Sponsors
Tuesday, July 28, 2009
Monday, July 27, 2009
Code Journal: Edit Mode on Table Views
I mentioned how my code worked for Edit mode on a table view in my iPhone app using the iPhone SDK 2.0 but then stopped working when I upgraded to 3.0. And I mentioned that after looking into things, it was amazing that my code worked at all the way I had it. Well, now I am going to explain the details.
It all has to do with the tableview methods beginUpdates and endUpdates. Based on the code that I originally used to base my code on, it appeared that beginUpdates was something you called when you entered the edit mode, and endUpdates was something you called when you exited edit mode. Nothing could be further from the truth!
Basically, these methods have something to do with animation of the cells on the table view. You want to do the beginUpdates, move into the table view's edit mode then call the endUpdates right away. Then you want to do the same thing when exit the table view's edit mode.
Below is a screen shot where I am checking the status of an Edit button on my view to toggle the edit mode on my table view:
You will notice how my beginUpdates and endUpdates lines are before and after each setEditing: animated: method.
Hope this helps
Friday, July 10, 2009
Code Journal
I have been back to successfully doing builds of my app on the device for a couple weeks now. One thing I ran into since upgrading to the iPhone 3.0 SDK is that my code which worked before to delete rows in a table view no longer worked.
Last night, after watching a video on table views from the last WWDC, I figured out what I was doing wrong. The issue wasn't really why it stopped working in 3.0, the real issue is how it had ever worked at all in 2.0!
I made some changes to my delete code last night, and it is working once again.
I'll share what I learned in another post later on.
Last night, after watching a video on table views from the last WWDC, I figured out what I was doing wrong. The issue wasn't really why it stopped working in 3.0, the real issue is how it had ever worked at all in 2.0!
I made some changes to my delete code last night, and it is working once again.
I'll share what I learned in another post later on.
Labels:
iPhone Development,
Table Views
Subscribe to:
Posts (Atom)