Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.toolBarState = [NSNumber numberWithInt:1];
- [self changeButtonNames];
- [self drawMap];
- [self performSelector:@selector(showActionSheet) withObject:nil afterDelay:2];
- HUD = [[MBProgressHUD alloc] initWithView:self.view];
- [self.view addSubview:HUD];
- HUD.delegate = (id) self;
- [HUD showWhileExecuting:@selector(drawMap) onTarget:self withObject:nil animated:YES];
- [self performSelector:@selector(showActionSheet) withObject:nil afterDelay:6];
- -(void)showActionSheet
- {
- InspectAppDelegate *dataCenter = (InspectAppDelegate *) [[UIApplication sharedApplication] delegate];
- if (dataCenter.fieldIDToPass == nil)
- {
- UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Selected Boundary Options" delegate:(id) self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Analyze a Field",@"Retrieve Saved Analysi", @"Geotag Photos", @"Refresh the map",nil];
- actionSheet.tag = 0;
- [actionSheet showInView:self.view];
- }
- else
- {
- UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Selected Boundary Options" delegate:(id) self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Analyze a Field",@"Retrieve Saved Analysi", @"Geotag Photos", @"Attribute the Field", @"Refresh the map",nil];
- actionSheet.tag = 0;
- [actionSheet showInView:self.view];
- }
- }
- -(void) foundDoubleTap:(UITapGestureRecognizer *) recognizer
- {
- [HUD showWhileExecuting:@selector(select) onTarget:self withObject:nil animated:YES];
- }
- -(void) select
- {
- [self changeButtonNames];
- [self drawMap];
- [self performSelector:@selector(showActionSheet) withObject:nil afterDelay:2];
- }
- -(void) select {
- [self changeButtonNames];
- [self drawMap];
- [self performSelectorOnMainThread:@selector(showActionSheet) withObject:nil waitUntilDone:YES];
- }
- -(void) select {
- [self changeButtonNames];
- [self drawMap];
- [self performSelectorOnMainThread:@selector(someA) withObject:nil waitUntilDone:YES];
- }
- -(void)someA {
- [self performSelector:@selector(showActionSheet) withObject:nil afterDelay:2];
- }
- dispatch_async(dispatch_get_main_queue(), ^{
- [self performSelector:loopSelector withObject:nil afterDelay:cycleTime];
- });
- [[[RACSignal empty] delay:2.0] subscribeCompleted:^(){
- // do something
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement