Showing
2 changed files
with
14 additions
and
2 deletions
| @@ -16,7 +16,19 @@ | @@ -16,7 +16,19 @@ | ||
| 16 | <view key="view" contentMode="scaleToFill" id="PPb-b8-nBo"> | 16 | <view key="view" contentMode="scaleToFill" id="PPb-b8-nBo"> |
| 17 | <rect key="frame" x="0.0" y="0.0" width="320" height="568"/> | 17 | <rect key="frame" x="0.0" y="0.0" width="320" height="568"/> |
| 18 | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | 18 | <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> |
| 19 | + <subviews> | ||
| 20 | + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="L3F-13-Wf5"> | ||
| 21 | + <rect key="frame" x="113" y="364" width="95" height="30"/> | ||
| 22 | + <state key="normal" title="Change Value"> | ||
| 23 | + <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/> | ||
| 24 | + </state> | ||
| 25 | + </button> | ||
| 26 | + </subviews> | ||
| 19 | <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> | 27 | <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> |
| 28 | + <constraints> | ||
| 29 | + <constraint firstItem="L3F-13-Wf5" firstAttribute="top" secondItem="znr-YO-4a4" secondAttribute="bottom" constant="300" id="ewm-kv-p8k"/> | ||
| 30 | + <constraint firstAttribute="centerX" secondItem="L3F-13-Wf5" secondAttribute="centerX" id="zXw-WV-mro"/> | ||
| 31 | + </constraints> | ||
| 20 | </view> | 32 | </view> |
| 21 | <navigationItem key="navigationItem" title="PNChart" id="Ukg-Sg-E2z"/> | 33 | <navigationItem key="navigationItem" title="PNChart" id="Ukg-Sg-E2z"/> |
| 22 | </viewController> | 34 | </viewController> |
| @@ -136,9 +136,9 @@ | @@ -136,9 +136,9 @@ | ||
| 136 | [PNPieChartDataItem dataItemWithValue:40 color:PNDeepGreen description:@"GOOG I/O"], | 136 | [PNPieChartDataItem dataItemWithValue:40 color:PNDeepGreen description:@"GOOG I/O"], |
| 137 | ]; | 137 | ]; |
| 138 | 138 | ||
| 139 | - PNPieChart *pieChart = [[PNPieChart alloc] initWithFrame:CGRectMake(40.0, 155.0, 240.0, 240.0) items:items]; | 139 | + PNPieChart *pieChart = [[PNPieChart alloc] initWithFrame:CGRectMake(SCREEN_WIDTH /2.0 - 100, 135, 200.0, 200.0) items:items]; |
| 140 | pieChart.descriptionTextColor = [UIColor whiteColor]; | 140 | pieChart.descriptionTextColor = [UIColor whiteColor]; |
| 141 | - pieChart.descriptionTextFont = [UIFont fontWithName:@"Avenir-Medium" size:14.0]; | 141 | + pieChart.descriptionTextFont = [UIFont fontWithName:@"Avenir-Medium" size:11.0]; |
| 142 | pieChart.descriptionTextShadowColor = [UIColor clearColor]; | 142 | pieChart.descriptionTextShadowColor = [UIColor clearColor]; |
| 143 | [pieChart strokeChart]; | 143 | [pieChart strokeChart]; |
| 144 | 144 |
-
Please register or login to post a comment