嘿,最近使用CorePlot,但问题是,我设置的标签没有显示,我能看到的一件事是主要和次要TickLine,但也只在x线以上而不是下面.
这是我的代码:
subViewGraph=[[CPGraphHostingView alloc]init];
subViewGraph.frame=CGRectMake(0, 40, 320, 280);
subViewGraph.bounds=CGRectMake(0, 40, 320,280);
[self.view addSubview:subViewGraph];
graph = [[CPXYGraph alloc] initWithFrame:subViewGraph.bounds];
CPTheme *theme = [CPTheme themeNamed:kCPPlainWhiteTheme];
[graph applyTheme:theme];
subViewGraph.hostedGraph=graph;
graph.paddingBottom=40;
// Define some custom labels for the data elements
CPXYAxisSet *axisSet = (CPXYAxisSet *)graph.axisSet;
CPXYAxis *x=axisSet.xAxis;
CPLineStyle *lineStyle = [CPLineStyle lineStyle];
lineStyle.lineColor = [CPColor redColor];
lineStyle.lineWidth = 2.0f;
x.majorIntervalLength = [[NSDecimalNumber decimalNumberWithString:@"2"]decimalValue];
x.minorTicksPerInterval = 4;
x.majorTickLineStyle = lineStyle;
x.minorTickLineStyle = lineStyle;
x.axisLineStyle = lineStyle;
x.minorTickLength = 5.0f;
x.majorTickLength = 10.0f;
x.labelOffset=3.0;
x.labelRotation = …Run Code Online (Sandbox Code Playgroud) ios App是否可以收听多个UUID?专门针对苹果iBeacon技术.
NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:@"23542266-18D1-4FE4-B4A1-23F8195B9D39"];
self.beaconRegion = [[CLBeaconRegion alloc] initWithProximityUUID:uuid identifier:@"com.devfright.myRegion"];
[self.locationManager startMonitoringForRegion:self.beaconRegion];
Run Code Online (Sandbox Code Playgroud)
使用此代码可以开始监视以下uuid:23542266-18D1-4FE4-B4A1-23F8195B9D39,如果我要添加另一个类听另一个uuid,这会工作,不会有任何干扰吗?也许添加几个听众?