Archive

Archive for May, 2010

mySlate for iPad 1.03 Approved

May 20th, 2010

Screen shot 2010-05-20 at 3.56.12 PM.png

Just a heads up for anyone who has it … 1.03 of mySlate for iPad was just approved by Apple and should be propagating its way through the app store now. Here’s the changelog:

 

#WebView:

Added Bookmark Folders

Save Images with 2 finger tap on image

2 finger swipe left/right to go back/forward

#Photos:

Option to randomize the slideshow

#Videos

New display layout

#General

Change password

Contact Support from the app

 

brandon Coding, iPhone

Limiting UITableview Cell Moves Between Sections

May 1st, 2010

CBD4D958-0624-4B0E-9D08-022F7C6C8CDE.jpg

Problem: You want to limit if a tableview cell is ABLE to move to a new section, or is limited to ONLY moving to a new section. For example in mySlate I’m supporting moving bookmarks to a new section/folder. However the bookmarks are laid out in alphabetical order inside a section/folder, so re-ordering them would do no good. Each time you open the bookmarks view they are returned alphabetically from the data store.

Solution:

- (NSIndexPath *)tableView:(UITableView *)tableView targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath
{
    if( sourceIndexPath.section != proposedDestinationIndexPath.section )
    {
        return proposedDestinationIndexPath;
    }
    else
    {
        return sourceIndexPath;
    }
//Reverse those to support only moving inside a section
}

Of course supporting movement in the tableview is yours to implement.

Source: stackoverflow

brandon Coding, iPhone

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.