-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathActivityAlertView.m
More file actions
executable file
·39 lines (30 loc) · 998 Bytes
/
ActivityAlertView.m
File metadata and controls
executable file
·39 lines (30 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2011 ESRI
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
//
// See the use restrictions at http://help.arcgis.com/en/sdk/10.0/usageRestrictions.htm
//
#import "ActivityAlertView.h"
@implementation ActivityAlertView
@synthesize activityView = _activityView;
- (id)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame]))
{
self.activityView = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(125, 50, 30, 30)];
[self addSubview:self.activityView];
self.activityView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
[self.activityView startAnimating];
}
return self;
}
- (void) close
{
[self dismissWithClickedButtonIndex:0 animated:YES];
}
@end