Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 210 additions & 0 deletions PivxWallet.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions PivxWallet/BRReceiveViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
//#define QR_IMAGE_FILE [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).lastObject\
// stringByAppendingPathComponent:@"qr.png"]


//WallOfCoins
#import "WOCConstants.h"
#import "BRAppDelegate.h"

@interface BRReceiveViewController ()

@property (nonatomic, strong) UIImage *qrImage;
Expand Down Expand Up @@ -505,4 +510,27 @@ - (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionCo
return self;
}

// MARK: - Wall of Coin Module
// Added New Button to Buy Dash with cash
- (IBAction)buyPIVXWithCashAction:(id)sender {
[sender setEnabled:NO];

[self dismissViewControllerAnimated:NO completion:^{
[self loadWOCModule];
[sender setEnabled:YES];
}];
}

-(void)loadWOCModule
{
dispatch_async(dispatch_get_main_queue(), ^{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:WOCBuyingStoryboard bundle:nil];
UINavigationController *navController = (UINavigationController*) [storyboard instantiateViewControllerWithIdentifier:@"wocNavigationController"];
[navController.navigationBar setTintColor:[UIColor whiteColor]];
BRAppDelegate *appDelegate = (BRAppDelegate*)[[UIApplication sharedApplication] delegate];
appDelegate.window.rootViewController = navController;
});
}


@end
4 changes: 4 additions & 0 deletions PivxWallet/BRRootViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,16 @@ -(BOOL)prefersStatusBarHidden {
}

- (void)addErrorView{

if (self.errorBar != nil && self.errorBar.hidden == FALSE)
{
if (!self.errorBar.superview) {
[self.navigationController.navigationBar addSubview:self.errorBar];
[self.navigationController.navigationBar addConstraint:[NSLayoutConstraint constraintWithItem:self.errorBar attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self.navigationController.navigationBar attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0.0]];
[self.navigationController.navigationBar addConstraint:[NSLayoutConstraint constraintWithItem:self.errorBar attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self.navigationController.navigationBar attribute:NSLayoutAttributeRight multiplier:1.0 constant:0.0]];
[self.navigationController.navigationBar addConstraint:[NSLayoutConstraint constraintWithItem:self.errorBar attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self.navigationController.navigationBar attribute:NSLayoutAttributeBottom multiplier:1.0 constant:-48.0]];
}
}
}

- (void)viewDidLoad
Expand Down
20 changes: 19 additions & 1 deletion PivxWallet/BRTxHistoryViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
#import <WebKit/WebKit.h>
#import "pivxwallet-Swift.h"

//WallOfCoins
#import "WOCConstants.h"
#import "BRAppDelegate.h"

#define TRANSACTION_CELL_HEIGHT 75

static NSString *dateFormat(NSString *template)
Expand Down Expand Up @@ -637,7 +641,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
}
else {
EmptyTableCell *tran = [tableView dequeueReusableCellWithIdentifier:self.emptyIdentifier forIndexPath:indexPath];
[tran configureWithTitle:@"NO TRANSACTIONS" image:@"imgTransactionEmpty"];
[tran configureWithTitle:@"Load up your Wallet ->" image:@"woc-icon"];
return tran;
//cell = [tableView dequeueReusableCellWithIdentifier:noTxIdent];
}
Expand Down Expand Up @@ -751,6 +755,9 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
}
else if (self.transactions.count > 0) [self showTx:self.transactions[indexPath.row]]; // transaction details

NSLog(@"Open WOC module Here");
[self loadWOCModule];

[tableView deselectRowAtIndexPath:indexPath animated:YES];
break;

Expand Down Expand Up @@ -782,6 +789,17 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
}
}

// MARK: - Wall of Coin Module
-(void)loadWOCModule
{
dispatch_async(dispatch_get_main_queue(), ^{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:WOCBuyingStoryboard bundle:nil];
UINavigationController *navController = (UINavigationController*) [storyboard instantiateViewControllerWithIdentifier:@"wocNavigationController"];
[navController.navigationBar setTintColor:[UIColor whiteColor]];
BRAppDelegate *appDelegate = (BRAppDelegate*)[[UIApplication sharedApplication] delegate];
appDelegate.window.rootViewController = navController;
});
}
// MARK: - UIViewControllerAnimatedTransitioning

// This is used for percent driven interactive transitions, as well as for container controllers that have companion
Expand Down
Loading