Today's Menu
Portugal
journal and plan nutrition
|
Singleton interface to both core and remote data sources. More...
#import <Z5DataController.h>
Instance Methods | |
(NSData *) | - googleBase64Data: |
(instancetype) | - init [implementation] |
(NSString *) | - degoogleBase64str: [implementation] |
Class Methods | |
(instancetype) | + sharedInstance |
(void) | + showQuery:message: |
(NSString *) | + produceRandomkey |
(void) | + labelize:withText: |
(void) | + extraLabelize:withText: |
(void) | + labelizeButton:withText: |
(void) | + labelizeCell:withText:inColor:andDetail: |
(void) | + labelizeCell:withText:image:inColor:andDetail: |
(UIButton *) | + makeGradientButton:withFrame:andFont: |
(UIImage *) | + imageNamed:sizedToPortrait: |
(UIImage *) | + imageNamed:sizedToLandscape: |
(void) | + showAlert:message: [implementation] |
(UIAlertController *) | + produceWaitController: [implementation] |
(UIImage *) | + produceImageWith:andSize: [implementation] |
Properties | |
Z5RemoteDataController * | remoteDataController |
Z5LocalDataController * | localDataController |
UIColor * | roseColor |
UIColor * | deepRoseColor |
UIColor * | wheatColor |
UIColor * | pearlColor37 |
UIColor * | grapeSkinDeepPurple |
UIColor * | keylimePieColor |
UIColor * | healthKitParamNotQueried |
UIColor * | healthKitParamDeniedAuthColor |
UIColor * | healthKitParamSharedColor |
Singleton interface to both core and remote data sources.
The design pattern used is one instance of this class is created, then shared for all access to core data and network resources, as well as some device hardware control. The one, shared, instance creates one each LocalDataController and RemoteDataController.
Typically, the only external reference to the Data-Controller is '.sharedInstance'. Convenience functions are also provided to pop alerts and wait indicators.
Definition at line 13 of file Z5DataController.h.
|
implementation |
Definition at line 65 of file Z5DataController.m.
+ (void) extraLabelize: | (UILabel *) | targLabel | |
withText: | (NSString *) | txt | |
Definition at line 226 of file Z5DataController.m.
- (NSData *) googleBase64Data: | (NSString *) | googEncodeString |
Definition at line 71 of file Z5DataController.m.
+ (UIImage *) imageNamed: | (NSString *) | imageName | |
sizedToLandscape: | (CGSize) | imageSize | |
Definition at line 90 of file Z5DataController.m.
+ (UIImage *) imageNamed: | (NSString *) | imageName | |
sizedToPortrait: | (CGSize) | imageSize | |
Definition at line 79 of file Z5DataController.m.
|
implementation |
Definition at line 40 of file Z5DataController.m.
+ (void) labelize: | (UILabel *) | targLabel | |
withText: | (NSString *) | txt | |
Definition at line 203 of file Z5DataController.m.
+ (void) labelizeButton: | (UIButton *) | targButton | |
withText: | (NSString *) | txt | |
Definition at line 188 of file Z5DataController.m.
+ (void) labelizeCell: | (UITableViewCell *) | targCell | |
withText: | (NSString *) | txt | |
image: | (NSData *) | cellImage | |
inColor: | (UIColor *) | color | |
andDetail: | (NSString *) | detailTxt | |
Definition at line 331 of file Z5DataController.m.
+ (void) labelizeCell: | (UITableViewCell *) | targCell | |
withText: | (NSString *) | txt | |
inColor: | (UIColor *) | color | |
andDetail: | (NSString *) | detailTxt | |
Definition at line 276 of file Z5DataController.m.
+ (UIButton *) makeGradientButton: | (NSString *) | caption | |
withFrame: | (CGRect) | buttonFrame | |
andFont: | (UIFont *) | buttonFont | |
Definition at line 387 of file Z5DataController.m.
|
implementation |
Definition at line 321 of file Z5DataController.m.
+ (NSString *) produceRandomkey |
Definition at line 173 of file Z5DataController.m.
|
implementation |
Helper for showing a wait indicator in a popup
Definition at line 141 of file Z5DataController.m.
+ (instancetype) sharedInstance |
This method is the main external call to this module, it returns the shared Z5DataController. The first time it is called, it creates its two subsidiary parts, local and remote.
Definition at line 30 of file Z5DataController.m.
|
implementation |
Helper for showing an alert
Definition at line 124 of file Z5DataController.m.
+ (void) showQuery: | (NSString *) | title | |
message: | (NSString *) | message | |
Helper for showing an alert
Definition at line 106 of file Z5DataController.m.
|
readwritenonatomicstrong |
Definition at line 36 of file Z5DataController.h.
|
readwritenonatomicstrong |
Definition at line 39 of file Z5DataController.h.
|
readwritenonatomicstrong |
Definition at line 42 of file Z5DataController.h.
|
readwritenonatomicstrong |
Definition at line 41 of file Z5DataController.h.
|
readwritenonatomicstrong |
Definition at line 43 of file Z5DataController.h.
|
readwritenonatomicstrong |
Definition at line 40 of file Z5DataController.h.
|
readnonatomicstrong |
Definition at line 16 of file Z5DataController.h.
|
readwritenonatomicstrong |
Definition at line 38 of file Z5DataController.h.
|
readnonatomicstrong |
Definition at line 15 of file Z5DataController.h.
|
readwritenonatomicstrong |
Definition at line 35 of file Z5DataController.h.
|
readwritenonatomicstrong |
Definition at line 37 of file Z5DataController.h.