This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // EditableViewCell.h | |
| // Editable UITableViewCell with a UITextField as an edit tool | |
| // Created by Eugene Yagrushkin on 11-05-04. | |
| // Copyright 2011 Eugene Yagrushkin All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [UIView animateWithDuration:HIDE_CONTROLS_ANIMATION | |
| animations:^{ | |
| // and other controls | |
| self.navigationController.navigationBar.hidden = ControlsHidden; | |
| self.tabbar.hidden = ControlsHidden; | |
| } | |
| completion:^(BOOL finished){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| + (BOOL)isRunningOniPad | |
| { | |
| static BOOL hasCheckediPadStatus = NO; | |
| static BOOL isRunningOniPad = NO; | |
| if (!hasCheckediPadStatus) | |
| { | |
| if ([[UIDevice currentDevice] respondsToSelector:@selector(userInterfaceIdiom)]) | |
| { | |
| if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UILongPressGestureRecognizer *recognizer; | |
| recognizer = [[[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleLongPress:)] autorelease]; | |
| [self.view addGestureRecognizer: recognizer]; | |
| - (void)handleLongPress:(UILongPressGestureRecognizer *)recognizer | |
NewerOlder