Inspect the global variable $pagenow, and use post_type_supports() to find post types with an editor:

function has_post_editor() 
{    
    global $pagenow;

    if ( empty ( $pagenow ) )
        return FALSE;

    if ( ! in_array( $pagenow, array ( 'post-new.php', 'post.php' ) ) )
        return FALSE;

    return post_type_supports( get_current_screen()-&gt;post_type, 'editor' );
}


Correct check for any admin page with editor
Here's my app design. I have mainController which presents secondViewController. Now, I want to dismiss secondViewController and subsequently call the method aMethod on mainController like so:

[self dismissViewControllerAnimated:YES completion:aMethod];


But this gives me the error use of undeclared identifier 'aMethod'

Obviously I am not using the completion handler correctly, but I cannot figure out the correct way. 
