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
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(keyboardWillShow:) | |
name:UIKeyboardWillShowNotification | |
object:nil]; | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(keyboardWillHide:) |
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
//dealing with UIImagePickerController and UIActionSheet | |
//ImageViewController.h | |
@interface ImageViewController : UIViewController | |
@end |
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
//making UITextView programmatically with custom class and UITextViewDelegate (JTextView) | |
//1. make basic UITextView programmatically with custom class | |
//Prefix header | |
#ifdef __OBJC__ | |
#define debug 1 |
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
//resize UITextView when showing keyboard | |
- (void)keyboardWillShow:(NSNotification *)aNotification { | |
[self moveTextViewForKeyboard:aNotification up:YES]; | |
} | |
- (void)keyboardWillHide:(NSNotification *)aNotification { | |
[self moveTextViewForKeyboard:aNotification up:NO]; | |
} |
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
//making UITextView programmatically with custom class and UITextViewDelegate | |
//1. make basic UITextView programmatically with custom class | |
//AppDelegate.h | |
@interface AppDelegate : UIResponder <UIApplicationDelegate> |
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
//UITextView subclass for supporting string, regex search and highlighting | |
//Created by Ivano Bilenchi on 05/11/13 | |
//ICAppDelegate.h | |
@interface ICAppDelegate : UIResponder <UIApplicationDelegate> | |
@property (strong, nonatomic) UIWindow *window; | |
@end |
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
//TableViews Getting Started (Ray Wenderlich) TableViews Chapter 2 Multiple Sections | |
//1. Scary Bugs | |
//ScaryBug.h | |
#import <Foundation/Foundation.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
//TableViews Getting Started (Ray Wenderlich) TableViews Chapter 1 Getting Started | |
//1. PrettyIcons | |
//Icon.h | |
typedef NS_ENUM(NSInteger, RatingType) { | |
RatingTypeUnrated, | |
RatingTypeUgly, |
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
//Custom KeyboardView | |
//DLViewController.h | |
@interface DLViewController : UIViewController | |
@end | |
//DLViewController.m |
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
//viewController with XIB and keyboard accview delegate | |
//AppDelegate.h | |
@class ViewController; | |
@interface AppDelegate : UIResponder <UIApplicationDelegate> | |
// viewController with XIB | |
// @property (strong, nonatomic) ViewController *viewController; |
NewerOlder