Skip to content

Commit 83f93bd

Browse files
committed
Fix compiler warnings
1 parent 702a0f5 commit 83f93bd

4 files changed

Lines changed: 34 additions & 4 deletions

File tree

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Xcode
2+
#
3+
build/
4+
*.pbxuser
5+
!default.pbxuser
6+
*.mode1v3
7+
!default.mode1v3
8+
*.mode2v3
9+
!default.mode2v3
10+
*.perspectivev3
11+
!default.perspectivev3
12+
xcuserdata
13+
*.xccheckout
14+
*.moved-aside
15+
DerivedData
16+
*.hmap
17+
*.ipa
18+
*.xcuserstate
19+
20+
# CocoaPods
21+
#
22+
# We recommend against adding the Pods directory to your .gitignore. However
23+
# you should judge for yourself, the pros and cons are mentioned at:
24+
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
25+
#
26+
# Pods/

Default-568h@2x.png

18.2 KB
Loading

STSegmentedControlDemo.xcodeproj/project.pbxproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
82902D3E13BE4AED00EAC215 /* selected_right@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 82902D2E13BE4AED00EAC215 /* selected_right@2x.png */; };
3333
82902D3F13BE4AED00EAC215 /* SomeIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = 82902D2F13BE4AED00EAC215 /* SomeIcon.png */; };
3434
82902D4013BE4AED00EAC215 /* STSegmentedControl.m in Sources */ = {isa = PBXBuildFile; fileRef = 82902D3213BE4AED00EAC215 /* STSegmentedControl.m */; };
35+
82BC3B23190D3EA100F7ADE5 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 82BC3B22190D3EA100F7ADE5 /* Default-568h@2x.png */; };
3536
/* End PBXBuildFile section */
3637

3738
/* Begin PBXFileReference section */
@@ -66,6 +67,7 @@
6667
82902D2F13BE4AED00EAC215 /* SomeIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = SomeIcon.png; sourceTree = "<group>"; };
6768
82902D3113BE4AED00EAC215 /* STSegmentedControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = STSegmentedControl.h; sourceTree = "<group>"; };
6869
82902D3213BE4AED00EAC215 /* STSegmentedControl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STSegmentedControl.m; sourceTree = "<group>"; };
70+
82BC3B22190D3EA100F7ADE5 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
6971
8BFB6B4516FB4E10003EF279 /* STSegmentedControlUI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = STSegmentedControlUI.h; sourceTree = "<group>"; };
7072
/* End PBXFileReference section */
7173

@@ -86,6 +88,7 @@
8688
82902CF313BE4AC700EAC215 = {
8789
isa = PBXGroup;
8890
children = (
91+
82BC3B22190D3EA100F7ADE5 /* Default-568h@2x.png */,
8992
8245E50013BE563400A3829A /* README.markdown */,
9093
8245E50713BE5A2700A3829A /* LICENSE */,
9194
82902D0813BE4AC700EAC215 /* STSegmentedControlDemo */,
@@ -195,6 +198,7 @@
195198
82902CF513BE4AC700EAC215 /* Project object */ = {
196199
isa = PBXProject;
197200
attributes = {
201+
LastUpgradeCheck = 0510;
198202
ORGANIZATIONNAME = FreshCreations;
199203
};
200204
buildConfigurationList = 82902CF813BE4AC700EAC215 /* Build configuration list for PBXProject "STSegmentedControlDemo" */;
@@ -231,6 +235,7 @@
231235
82902D3913BE4AED00EAC215 /* selected_left.png in Resources */,
232236
82902D3A13BE4AED00EAC215 /* selected_left@2x.png in Resources */,
233237
82902D3B13BE4AED00EAC215 /* selected_middle.png in Resources */,
238+
82BC3B23190D3EA100F7ADE5 /* Default-568h@2x.png in Resources */,
234239
82902D3C13BE4AED00EAC215 /* selected_middle@2x.png in Resources */,
235240
82902D3D13BE4AED00EAC215 /* selected_right.png in Resources */,
236241
82902D3E13BE4AED00EAC215 /* selected_right@2x.png in Resources */,
@@ -287,7 +292,6 @@
287292
82902D1D13BE4AC700EAC215 /* Debug */ = {
288293
isa = XCBuildConfiguration;
289294
buildSettings = {
290-
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
291295
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
292296
GCC_C_LANGUAGE_STANDARD = gnu99;
293297
GCC_OPTIMIZATION_LEVEL = 0;
@@ -297,14 +301,14 @@
297301
GCC_WARN_ABOUT_RETURN_TYPE = YES;
298302
GCC_WARN_UNUSED_VARIABLE = YES;
299303
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
304+
ONLY_ACTIVE_ARCH = YES;
300305
SDKROOT = iphoneos;
301306
};
302307
name = Debug;
303308
};
304309
82902D1E13BE4AC700EAC215 /* Release */ = {
305310
isa = XCBuildConfiguration;
306311
buildSettings = {
307-
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
308312
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
309313
GCC_C_LANGUAGE_STANDARD = gnu99;
310314
GCC_VERSION = com.apple.compilers.llvmgcc42;

STSegmentedControlDemo/STSegmentedControlDemoViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ - (void)viewDidLoad {
5757

5858
- (void)valueChanged:(id)sender {
5959
STSegmentedControl *control = sender;
60-
NSLog(@"ST Index: %i", control.selectedSegmentIndex);
60+
NSLog(@"ST Index: %li", (long)control.selectedSegmentIndex);
6161
}
6262

6363
- (void)standardSegmentValueChanged:(id)sender {
6464
UISegmentedControl *control = sender;
65-
NSLog(@"UI Index: %i", control.selectedSegmentIndex);
65+
NSLog(@"UI Index: %li", (long)control.selectedSegmentIndex);
6666
}
6767

6868
- (void)button1Clicked:(id)sender {

0 commit comments

Comments
 (0)