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
What is a habit? | |
---------------- | |
Cognitive psychologists define habits as “automatic behaviors triggered by situational cues”: things we do with little or no | |
conscious thought. You can also say, A habit is when not doing an action causes a bit of pain. | |
Why it is important to create habits? | |
------------------------------------- | |
- Lower customer retention cost( Because habits mean returning users without external triggers. Essentially users come back without spending further money) | |
- Higher CLTV (Because customers stay with your product longer) | |
- Greater Pricing Flexibility (Because people would not like to leave the product because of price) |
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
FailedBankInfo.h | |
---------------- | |
@interface FailedBankInfo : NSObject { | |
int _uniqueId; | |
NSString *_name; | |
NSString *_city; | |
NSString *_state; | |
} |
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)addPetToContacts: (UIButton *) petButton{ | |
NSString *petFirstName; | |
NSString *petLastName; | |
NSString *petPhoneNumber; | |
NSData *petImageData; | |
if (petButton.tag == 1){ | |
petFirstName = @"Cheesy"; | |
petLastName = @"Cat"; | |
petPhoneNumber = @"2015552398"; | |
petImageData = UIImageJPEGRepresentation([UIImage imageNamed:@"contact_Cheesy.jpg"], 0.7f); |
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
UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"Alert !!!" message:@"This message should pop us as soon as the app loads" delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil]; | |
[alert show]; |
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
- (NSFetchedResultsController *)fetchedResultsController { | |
if (_fetchedResultsController != nil) { | |
return _fetchedResultsController; | |
} | |
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; | |
NSEntityDescription *entity = [NSEntityDescription | |
entityForName:@"FailedBankInfo" inManagedObjectContext:managedObjectContext]; | |
[fetchRequest setEntity:entity]; |
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
Venue.h | |
------- | |
@class Location; | |
@class Stats ; | |
@interface Venue : NSObject | |
@property (nonatomic, strong) NSString *name; | |
@property (nonatomic, strong) Location *location; | |
@property (nonatomic, strong) Stats *stats; |
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
FailedBankInfo.h | |
----------------- | |
#import <CoreData/CoreData.h> | |
@class FailedBankDetails; | |
@interface FailedBankInfo : NSManagedObject | |
@property (nonatomic, retain) NSString * name; | |
@property (nonatomic, retain) NSString * city; |
NewerOlder