Skip to content

Commit

Permalink
Small fixes for iOS 6
Browse files Browse the repository at this point in the history
  • Loading branch information
yonat committed Mar 29, 2013
1 parent 5f8988f commit 5fe556b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion BadgeLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ - (id)initWithFrame:(CGRect)frame
[self initBadge];
self.textColor = [UIColor whiteColor];
self.font = [UIFont boldSystemFontOfSize:17];
self.textAlignment = UITextAlignmentCenter;
self.textAlignment = NSTextAlignmentCenter;
self.backgroundColor = [UIColor blueColor];
}

Expand Down
2 changes: 2 additions & 0 deletions BadgeView.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "BadgeView/BadgeView-Prefix.pch";
INFOPLIST_FILE = "BadgeView/BadgeView-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
Expand All @@ -267,6 +268,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "BadgeView/BadgeView-Prefix.pch";
INFOPLIST_FILE = "BadgeView/BadgeView-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
Expand Down
2 changes: 1 addition & 1 deletion BadgeView/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ @implementation ViewController

- (IBAction)sliderChanged
{
NSString *s = [NSString stringWithFormat:@"%d", lroundf(slider.value)];
NSString *s = [NSString stringWithFormat:@"%ld", lroundf(slider.value)];
badge.text = s;
}

Expand Down
10 changes: 5 additions & 5 deletions BadgeView/en.lproj/MainStoryboard.storyboard
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="1.0" toolsVersion="1938" systemVersion="11C74" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" initialViewController="2">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="3084" systemVersion="11G63b" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" initialViewController="2">
<dependencies>
<development defaultVersion="4200" identifier="xcode"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="933"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="2083"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="5">
<objects>
<placeholder placeholderIdentifier="IBFirstResponder" id="4" sceneMemberID="firstResponder"/>
<viewController id="2" customClass="ViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="3">
<rect key="frame" x="0.0" y="20" width="320" height="460"/>
Expand All @@ -25,7 +24,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="44S-3X-RB5" customClass="BadgeTableViewCell">
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="badgedCell" id="44S-3X-RB5" customClass="BadgeTableViewCell">
<rect key="frame" x="0.0" y="22" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
Expand Down Expand Up @@ -62,6 +61,7 @@
<outlet property="slider" destination="P5n-cK-QGX" id="CLA-cX-ayz"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="4" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="124" y="397"/>
</scene>
Expand Down

0 comments on commit 5fe556b

Please sign in to comment.