Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 88 lines (71 sloc) 3.53 kb
880227a ettore function to do a snapshot of a view appending a title below it
authored
1 /*
2 Copyright (c) 2011, Cubelogic. All rights reserved.
3
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions are met:
6
7 * Redistributions of source code must retain the above copyright notice,
8 this list of conditions and the following disclaimer.
9 * Redistributions in binary form must reproduce the above copyright notice,
10 this list of conditions and the following disclaimer in the documentation
11 and/or other materials provided with the distribution.
12 * Neither the name of Cubelogic nor the names of its contributors may be
13 used to endorse or promote products derived from this software without
14 specific prior written permission.
15
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
20 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 POSSIBILITY OF SUCH DAMAGE.
27
28 Created by Ettore Pasquini on 10/19/11.
29
30 */
31
32 #import <Foundation/Foundation.h>
33
34 /**
35 * Does a snapshot of a view appending a title below it.
36 */
37 UIImage *clcg_do_snapshot(UIView *v, NSString *title);
4024ce9 ettore added methods to show/hide bottom bar when pushing/popping a vc, plus so...
authored
38
39
40 /**
41 * Scenario: you want to hide the bottom bar when a VC of class 'hiding_vc_class'
42 * is pushed on the stack.
43 *
44 * Usage: from your UINavigationController subclass, override
45 * pushViewController:animated: and call this function before calling super.
cf97f3e ettore changed function names to candygirl naming conventions
authored
46 * Use this function in conjunction with clcg_popping_vc_from_hiding().
4024ce9 ettore added methods to show/hide bottom bar when pushing/popping a vc, plus so...
authored
47 *
48 * @param nc The Navigation Controller who's pushing the view controllers on
49 * the navigation stack.
50 * @param vc The view conroller about to be pushed.
51 * @param hiding_vc_class The specific class for which we want to hide the
52 * bottom bar.
53 */
cf97f3e ettore changed function names to candygirl naming conventions
authored
54 void clcg_pushing_vc_for_hiding(UINavigationController *nc,
55 UIViewController *vc,
56 Class hiding_vc_class);
4024ce9 ettore added methods to show/hide bottom bar when pushing/popping a vc, plus so...
authored
57
58
59 /**
60 * Scenario: you want to show back the bottom bar when a VC of class
61 * 'hiding_vc_class' is popped from the stack.
62 *
63 * Usage: from your UINavigationController subclass, override
64 * popViewControllerAnimated: and call this function before calling super.
65 *
66 * @param nc The Navigation Controller who's popping the view controllers on
67 * the navigation stack.
68 * @param hiding_vc_class The specific class for which we want to hide the
69 * bottom bar.
70 */
cf97f3e ettore changed function names to candygirl naming conventions
authored
71 void clcg_popping_vc_from_hiding(UINavigationController *nc, Class hiding_vc_class);
4024ce9 ettore added methods to show/hide bottom bar when pushing/popping a vc, plus so...
authored
72
73
74 /**
75 * Creates an UIActivityIndicatorView of given size in pixels and returns it.
76 * The returned instance is not autoreleased: the celler will have to
77 * take care of releasing it when needed.
78 */
cf97f3e ettore changed function names to candygirl naming conventions
authored
79 UIActivityIndicatorView *clcg_new_spinny(CGFloat size);
4024ce9 ettore added methods to show/hide bottom bar when pushing/popping a vc, plus so...
authored
80
81
82 /**
83 * Creates an UIActivityIndicatorView of given size in pixels, attaches it to
84 * the accessory view of the table-view cell, and autoreleases it.
85 */
cf97f3e ettore changed function names to candygirl naming conventions
authored
86 void clcg_attach_spinny2cell(CGFloat size, UITableViewCell *cell);
4024ce9 ettore added methods to show/hide bottom bar when pushing/popping a vc, plus so...
authored
87
Something went wrong with that request. Please try again.