You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 2, 2020. It is now read-only.
Added nullability features available in Xcode 6.3. Added warnings to
methods which will be deprecated in the next major release. Removed
compile-time module check, because modules should now be the default.
Copy file name to clipboardExpand all lines: Classes/BEMSimpleLineGraphView.h
+17-14Lines changed: 17 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,9 @@
7
7
// Copyright (c) 2014 Sam Spencer.
8
8
//
9
9
10
-
#if __has_feature(objc_modules)
11
-
// We recommend enabling Objective-C Modules in your project Build Settings for numerous benefits over regular #imports. Read more from the Modules documentation: http://clang.llvm.org/docs/Modules.html
12
10
@import Foundation;
13
11
@import UIKit;
14
12
@import CoreGraphics;
15
-
#else
16
-
#import<Foundation/Foundation.h>
17
-
#import<UIKit/UIKit.h>
18
-
#import<CoreGraphics/CoreGraphics.h>
19
-
#endif
20
13
21
14
#import"BEMCircle.h"
22
15
#import"BEMLine.h"
@@ -30,6 +23,9 @@
30
23
31
24
externconstCGFloat BEMNullGraphValue;
32
25
26
+
// Tell the compiler to assume that no method should have a NULL value
27
+
NS_ASSUME_NONNULL_BEGIN
28
+
33
29
/// Simple line graph / chart UIView subclass for iOS apps. Creates beautiful line graphs (without huge memory impacts) using QuartzCore.
@abstract The BEMSimpleLineGraphView delegate object plays a key role in changing the appearance of the graph and receiving graph events. Use the delegate to provide appearance changes, receive touch events, and receive graph events. The delegate can be set from the interface or from code.
46
42
@discussion The delegate must adopt the \p BEMSimpleLineGraphDelegate protocol. The delegate is not retained.*/
@discussion The number of strings to be returned should be equal to the number of points in the graph (returned in \p numberOfPointsInLineGraph). Otherwise, an exception may be thrown.
397
393
@param graph The graph object which is requesting the label on the specified X-Axis position.
398
394
@param index The index from left to right of a given label on the X-axis. Is the same index as the one for the points. The first value for the index is 0. */
/** \b DEPRECATED. Use \p lineGraph:didTouchGraphWithClosestIndex: instead. Gets called when the user starts touching the graph. The property 'enableTouchReport' must be set to YES.
612
+
@warning This method will be removed in the next version with breaking changes.
614
613
@deprecated Deprecated in 1.3. Use \p lineGraph:didTouchGraphWithClosestIndex: instead.
615
614
@param index The closest index (X-axis) from the location the user is currently touching. */
/** \b DEPRECATED. Use \p numberOfGapsBetweenLabelsOnLineGraph: instead. The number of free space between labels on the X-axis to avoid overlapping.
626
+
@warning This method will be removed in the next version with breaking changes.
626
627
@deprecated Deprecated in 1.3. Use \p numberOfGapsBetweenLabelsOnLineGraph: instead.
627
628
@discussion For example returning '1' would mean that half of the labels on the X-axis are not displayed: the first is not displayed, the second is, the third is not etc. Returning '0' would mean that all of the labels will be displayed. Finally, returning a value equal to the number of labels will only display the first and last label.
628
629
@return The number of labels to "jump" between each displayed label on the X-axis. */
629
630
- (int)numberOfGapsBetweenLabels __deprecated;
630
631
631
632
632
633
/** \b DEPRECATED. Use \p lineGraph:labelOnXAxisForIndex: instead. The string to display on the label on the X-axis at a given index. Please note that the number of strings to be returned should be equal to the number of points in the Graph.
634
+
@warning This method will be removed in the next version with breaking changes.
633
635
@deprecated Deprecated in 1.3. Use \p lineGraph:labelOnXAxisForIndex: instead.
634
636
@param index The index from left to right of a given label on the X-axis. Is the same index as the one for the points. The first value for the index is 0. */
/** \b DEPRECATED. No longer available on \p BEMSimpleLineGraphDelegate. Implement this method on \p BEMSimpleLineGraphDataSource instead. The number of points along the X-axis of the graph.
639
641
@deprecated Deprecated in 2.3. Implement with \p BEMSimpleLineGraphDataSource instead.
640
-
641
642
@param graph The graph object requesting the total number of points.
642
643
@return The total number of points in the line graph. */
0 commit comments