forked from atomton/ATMHud
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathATMHud.podspec
48 lines (45 loc) · 2.53 KB
/
ATMHud.podspec
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
40
41
42
43
44
45
46
47
48
Pod::Spec.new do |s|
s.name = 'ATMHud'
s.version = '3.0.0'
s.platform = :ios
s.ios.deployment_target = '7.0'
s.license = 'BSD'
s.summary = 'Full featured and flexible HUD framework.'
s.homepage = 'https://github.com/dhoerl/ATMHud'
s.author = { 'Marcel Müller' => '[email protected]', 'David Hoerl' => '[email protected]' }
s.source = { :git => 'https://github.com/dhoerl/ATMHud.git', :tag => s.version.to_s }
s.requires_arc = true
s.screenshots = [ "https://github.com/dhoerl/ScreenShots/BasicFunctions.png",
"https://github.com/dhoerl/ScreenShots/AdvancedFunctions.png",
"https://github.com/dhoerl/ScreenShots/SimpleCaption.png",
"https://github.com/dhoerl/ScreenShots/Caption+Activity.png",
"https://github.com/dhoerl/ScreenShots/JustSpinner.png",
"https://github.com/dhoerl/ScreenShots/Caption+ProgressBar.png",
"https://github.com/dhoerl/ScreenShots/Caption+ProgressBar_FixedSize" ]
s.default_subspec = 'Core'
s.subspec 'Core' do |sp|
sp.source_files = 'ATM*.{h,m}'
sp.exclude_files = 'ATMSoundFX.{h,m}'
sp.resources = '11-x.png', '19-check.png'
sp.frameworks = 'QuartzCore'
end
s.subspec 'WithSound' do |sp|
sp.source_files = 'ATM*.{h,m}'
sp.resources = '11-x.png', '19-check.png', 'pop.wav'
sp.frameworks = 'QuartzCore', 'AudioToolbox'
sp.compiler_flags = '-DATM_SOUND'
end
s.description = <<-DESC
ATMHud offers a versatile and full featured HUD for yuour iOS projects. You can use either a traditional protocol based delegate or a block based one. A Demo app shows how to use most of the feature set and both delegates. You can set any of a caption, two types of progress indicators, and an image to the HUD, which resizes as needed. You can control where the progress indicator goes (top/bot/left/right), the view grayness and cover view's grayness/opacity. If you're showing the HUD with the keyboard up (for example), you can move the HUD's center.
Usage:
// Keep a strong ivar reference to it (ie, "ATMHud *hud")
hud = [ATMHud new]; // using the block delegate
[hud setCaption:@"Caption and an activity indicator."];
[hud setActivity:YES];
hud.blockDelegate = ....; // see demo project
[hud showInView:self.view];
...
[hud hide];
//the block delegate can release the hud and nil the ivar (see Demo app)
DESC
end