Skip to content

Commit

Permalink
support for iPhone6/P
Browse files Browse the repository at this point in the history
  • Loading branch information
liaojinxing committed Jan 20, 2015
1 parent 0583c25 commit 9430896
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Voice2Note.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
C7821AED1949AB2B008B952D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = C7821AEC1949AB2B008B952D /* AppDelegate.m */; };
C7821AEF1949B405008B952D /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = C7821AEE1949B404008B952D /* [email protected] */; };
C79B92851952E6A10071E995 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = C79B92841952E6A10071E995 /* [email protected] */; };
C7B282821A6E30F30072FAD3 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = C7B282811A6E30F30072FAD3 /* LaunchScreen.xib */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -191,6 +192,7 @@
C7821AEC1949AB2B008B952D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
C7821AEE1949B404008B952D /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "[email protected]"; path = "Resource/[email protected]"; sourceTree = "<group>"; };
C79B92841952E6A10071E995 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "[email protected]"; path = "Resource/[email protected]"; sourceTree = "<group>"; };
C7B282811A6E30F30072FAD3 /* LaunchScreen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = LaunchScreen.xib; path = Source/LaunchScreen.xib; sourceTree = "<group>"; };
D981B20068169477BE575983 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -340,6 +342,7 @@
C7470A91196164CB00FD154B /* AppContext.m */,
C7821A9519480417008B952D /* AppDelegate.h */,
C7821AEC1949AB2B008B952D /* AppDelegate.m */,
C7B282811A6E30F30072FAD3 /* LaunchScreen.xib */,
);
name = App;
sourceTree = "<group>";
Expand Down Expand Up @@ -692,6 +695,7 @@
C79B92851952E6A10071E995 /* [email protected] in Resources */,
C7821ACE19482610008B952D /* Localizable.strings in Resources */,
C7821AEF1949B405008B952D /* [email protected] in Resources */,
C7B282821A6E30F30072FAD3 /* LaunchScreen.xib in Resources */,
C7821AD219483FD6008B952D /* [email protected] in Resources */,
C7821ADF19485FC0008B952D /* [email protected] in Resources */,
C7821A9919480417008B952D /* Images.xcassets in Resources */,
Expand Down Expand Up @@ -1054,7 +1058,6 @@
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CLANG_CXX_LIBRARY = "libstdc++";
CODE_SIGN_IDENTITY = "iPhone Developer: Liao Jinxing (WFC59XXUQC)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Liao Jinxing (WFC59XXUQC)";
Expand Down Expand Up @@ -1085,7 +1088,6 @@
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CLANG_CXX_LIBRARY = "libstdc++";
CODE_SIGN_IDENTITY = "iPhone Distribution: Liao Jinxing (8CMA73KN4U)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Liao Jinxing (8CMA73KN4U)";
Expand Down
2 changes: 1 addition & 1 deletion Voice2Note/Source/Controller/NoteListCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
self.contentView.backgroundColor = [UIColor systemColor];
_backgroundView = [[UIView alloc] initWithFrame:CGRectMake(kCellHorizontalMargin,
kVerticalPadding,
self.frame.size.width - kCellHorizontalMargin * 2,
[UIScreen mainScreen].bounds.size.width - kCellHorizontalMargin * 2,
0)];
_backgroundView.layer.cornerRadius = 0.0f;
_backgroundView.layer.masksToBounds = YES;
Expand Down
44 changes: 44 additions & 0 deletions Voice2Note/Source/LaunchScreen.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6250" systemVersion="14A389" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015年 jinxing. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
<rect key="frame" x="20" y="439" width="441" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
<variation key="widthClass=compact">
<fontDescription key="fontDescription" type="system" pointSize="11"/>
</variation>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="懒人笔记,无需动笔" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
<rect key="frame" x="20" y="140" width="441" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.0039215686274509803" green="0.59607843137254901" blue="0.45882352941176469" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="Kid-kn-2rF"/>
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="404" y="445"/>
</view>
</objects>
</document>
2 changes: 2 additions & 0 deletions Voice2Note/Voice2Note-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
<string>1.1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
Expand Down

0 comments on commit 9430896

Please sign in to comment.