This file contains 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
#pragma mark - | |
#pragma mark Table view data source | |
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { | |
return 1; | |
} | |
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { | |
NSInteger rows; | |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js'></script> | |
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.css' rel='stylesheet' /> | |
<style> | |
body { margin:0; padding:0; } | |
#map { position:absolute; top:0; bottom:0; width:100%; } | |
</style> | |
</head> |
This file contains 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
NSURLConnection | NSURLSession | |
------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------- | |
NSURLConnectionDelegate connectionShouldUseCredentialStorage: | | |
------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------- | |
NSURLConnectionDelegate connection:willSendRequestForAuthenticationChallenge: | NSURLSessionDelegate URLSession:didReceiveChallenge:completionHandler: | |
| N |
This file contains 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
#import <UIKit/UIKit.h> | |
#import "FISFilterObject.h" | |
#import "THConversationShareViewController.h" | |
@interface FISViewController : UIViewController<UIPickerViewDelegate, UIPickerViewDataSource, ConversationShareViewControllerDelegate> | |
@property (strong, nonatomic) UIImage *imageToProcess; | |
@property(strong, nonatomic) UIImage *savedImage; | |
@property (strong, nonatomic) IBOutlet UIImageView *theImageView; | |
@property (strong, nonatomic) IBOutlet UIPickerView *filterNamesPicker; |
This file contains 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
#import "FISViewController.h" | |
@interface FISViewController () | |
@property(strong, nonatomic) CIContext *context; | |
@property(strong, nonatomic) CIFilter *filter; | |
@property(strong, nonatomic) CIImage *beginImage; | |
@property(strong, nonatomic) NSMutableArray *arrayOfFilters; | |
@property(strong, nonatomic) NSString *filtersName; | |
@end |
This file contains 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
#import "THEditImageViewController.h" | |
#import "THCameraViewController.h" | |
#import "THEditImageViewController+Autolayout.h" | |
typedef void(^ButtonReplacementBlock)(void); | |
@interface THEditImageViewController () <UINavigationControllerDelegate, THCameraDelegateProtocol, UIScrollViewDelegate> | |
@property (nonatomic, assign) CGFloat zoomScale; | |
@property (nonatomic, assign) CGFloat maximumZoomScale; |
This file contains 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
#import <UIKit/UIKit.h> | |
#import "THCameraViewController.h" | |
#import "THConversationShareViewController.h" | |
@interface THEditImageViewController : UIViewController <ConversationShareViewControllerDelegate> | |
#pragma mark - Object Properties | |
@property (strong, nonatomic) id <ConversationShareViewControllerDelegate> delegate; |
This file contains 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) viewWillAppear:(BOOL)animated { | |
[super viewWillAppear:animated]; | |
if(!self.navigationItem.titleView){ | |
self.navigationItem.titleView = ({ | |
UILabel *titleView = [UILabel new]; | |
titleView.numberOfLines = 0; | |
titleView.textAlignment = NSTextAlignmentCenter; | |
titleView.attributedText = [[NSAttributedString alloc] initWithString:@"2\nLINES" attributes: | |
self.navigationController.navigationBar.titleTextAttributes |