comManager works now
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
#import "SlideShow.h"
|
#import "SlideShow.h"
|
||||||
#import "Base64.h"
|
#import "Base64.h"
|
||||||
|
#import <dispatch/dispatch.h>
|
||||||
#import "slideShowViewController.h"
|
#import "slideShowViewController.h"
|
||||||
|
|
||||||
@interface SlideShow()
|
@interface SlideShow()
|
||||||
@@ -24,16 +25,22 @@
|
|||||||
@synthesize currentSlide = _currentSlide;
|
@synthesize currentSlide = _currentSlide;
|
||||||
@synthesize delegate = _delegate;
|
@synthesize delegate = _delegate;
|
||||||
|
|
||||||
|
dispatch_queue_t backgroundQueue;
|
||||||
|
|
||||||
- (SlideShow *) init{
|
- (SlideShow *) init{
|
||||||
self = [super init];
|
self = [super init];
|
||||||
self.imagesArray = [[NSMutableArray alloc] init];
|
self.imagesArray = [[NSMutableArray alloc] init];
|
||||||
self.notesArray = [[NSMutableArray alloc] init];
|
self.notesArray = [[NSMutableArray alloc] init];
|
||||||
_size = 0;
|
_size = 0;
|
||||||
_currentSlide = 0;
|
_currentSlide = 0;
|
||||||
|
|
||||||
|
backgroundQueue = dispatch_queue_create("org.libreoffice.iosremote.bgqueue", NULL);
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) putImage: (NSString *)img AtIndex: (uint) index{
|
- (void) putImage: (NSString *)img AtIndex: (uint) index{
|
||||||
|
|
||||||
NSData* data = [NSData dataWithBase64String:img];
|
NSData* data = [NSData dataWithBase64String:img];
|
||||||
UIImage* image = [UIImage imageWithData:data];
|
UIImage* image = [UIImage imageWithData:data];
|
||||||
[self.imagesArray insertObject:image atIndex:index];
|
[self.imagesArray insertObject:image atIndex:index];
|
||||||
|
Reference in New Issue
Block a user