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
@interface ViewController : UIViewController <UIImagePickerControllerDelegate> | |
- (IBAction)tappedGetPhoto:(id)sender; | |
@property (weak, nonatomic) IBOutlet UIImageView *imageView; | |
@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
USE [existingdb] | |
GO | |
/****** Object: View [existingdb].[TodoItem] Script Date: 12/18/2012 9:15:55 AM ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
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
#import <UIKit/UIKit.h> | |
@interface ViewController : UIViewController <UIImagePickerControllerDelegate> | |
- (IBAction)tappedUseCamera:(id)sender; | |
@property (weak, nonatomic) IBOutlet UIImageView *imageView; | |
@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
#import <Foundation/Foundation.h> | |
#import <MapKit/MapKit.h> | |
@interface MapAnnotation : NSObject <MKAnnotation>{ | |
CLLocationCoordinate2D _coordinate; | |
} | |
- (id)initWithCoordinate:(CLLocationCoordinate2D)coordinate; | |
@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
#import <Foundation/Foundation.h> | |
#import "CoreLocation/CoreLocation.h" | |
@protocol CoreLocationControllerDelegate | |
@required | |
- (void)update:(CLLocation *)location; | |
- (void)locationError:(NSError *)error; | |
@end | |
@interface CoreLocationController : NSObject <CLLocationManagerDelegate> |
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)application:(UIApplication *)application handleOpenURL:(NSURL *)url | |
{ | |
if (!url) { return NO; } | |
UIAlertView *alertView; | |
alertView = [[UIAlertView alloc] initWithTitle:@"Launch by URL" message:@"This app was launched from a URL" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; | |
[alertView show]; | |
return YES; | |
} |
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
#import <Foundation/Foundation.h> | |
@interface CustomObject : NSObject | |
@property (strong, nonatomic) NSString *name; | |
@property (strong, nonatomic) NSNumber *number; | |
@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
#import <UIKit/UIKit.h> | |
@interface ViewController : UIViewController | |
@property (weak, nonatomic) IBOutlet UILabel *lblInfo; | |
@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
function insert(item, user, request) { | |
item.userId = user.userId; | |
request.execute({ | |
success: function(){ | |
request.respond(); | |
sendNotifications(item); | |
}, | |
error: function(err){ | |
request.respond(500, "Error"); | |
} |