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
@property NSMutableArray *self.shoeImagesArray; | |
// ^somewhere within your interface | |
-(void)retreiveImagesFromParse | |
{ | |
self.shoeImagesArray = [NSMutableArray new]; | |
PFQuery *query = [PFQuery queryWithClassName:@“Shoe”]; |
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
@property NSMutableArray *self.shoeImagesArray; | |
// ^somewhere within your interface | |
-(void)retrieveImagesFromParse | |
{ | |
self.shoeImagesArray = [NSMutableArray new]; | |
PFQuery *query = [PFQuery queryWithClassName:@“Shoe”]; |
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
extension String | |
{ | |
///:returns: The floating-point value of the string as a double. | |
func toDouble() -> Double | |
{ | |
let convertedString = self as NSString | |
return convertedString.doubleValue | |
} | |
///:returns: The NSInteger value of the string. |
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
extension String | |
{ | |
///:returns: The floating-point value of the string as a double. | |
func toDouble() -> Double | |
{ | |
let convertedString = self as NSString | |
return convertedString.doubleValue | |
} | |
///:returns: The NSInteger value of the string. |
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
//Resign keyboard when user taps away from textfield | |
override func touchesBegan(touches: NSSet!, withEvent event: UIEvent!) | |
{ | |
view.endEditing(true) | |
} |
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
//MARK: TextField Delegate Methods | |
func textFieldShouldReturn(textField: UITextField) -> Bool | |
{ | |
textField.resignFirstResponder() | |
return true | |
} |
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
//Animate the tipLabel's alpha changing from 0 to 1 over the period of 1.2 seconds | |
tipLabel.alpha = 0 | |
UIView.animateWithDuration(1.2, animations: { () -> Void in | |
self.tipLabel.alpha = 1 | |
}) |
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
override func touchesBegan(touches: NSSet, withEvent event: UIEvent) | |
{ | |
view.endEditing(true) | |
} |
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
// | |
// Pizzeria.h | |
// ZaHunter | |
// | |
// Created by Christopher on 10/15/14. | |
// Copyright (c) 2014 Big Nerd Ranch. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <MapKit/MapKit.h> |
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
// | |
// Pizzeria.m | |
// ZaHunter | |
// | |
// Created by Christopher on 10/15/14. | |
// Copyright (c) 2014 Big Nerd Ranch. All rights reserved. | |
// | |
#import "Pizzeria.h" |
OlderNewer