-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7020fc8
Showing
9 changed files
with
873 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
This simple iOS app is adapted from Apple's CoreBluetooth: Health Thermometer | ||
sample app (a Mac app). | ||
|
||
http://developer.apple.com/library/mac/#samplecode/HealthThermometer | ||
|
||
Use freely. | ||
|
||
Tim Burks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,275 @@ | ||
// !$*UTF8*$! | ||
{ | ||
archiveVersion = 1; | ||
classes = { | ||
}; | ||
objectVersion = 46; | ||
objects = { | ||
|
||
/* Begin PBXBuildFile section */ | ||
22A8518B153E8F3E000B4042 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A8518A153E8F3E000B4042 /* UIKit.framework */; }; | ||
22A8518D153E8F3E000B4042 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A8518C153E8F3E000B4042 /* Foundation.framework */; }; | ||
22A8518F153E8F3E000B4042 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A8518E153E8F3E000B4042 /* CoreGraphics.framework */; }; | ||
22A85195153E8F3E000B4042 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 22A85193153E8F3E000B4042 /* InfoPlist.strings */; }; | ||
22A85197153E8F3E000B4042 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 22A85196153E8F3E000B4042 /* main.m */; }; | ||
22A8519B153E8F3E000B4042 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 22A8519A153E8F3E000B4042 /* AppDelegate.m */; }; | ||
22A851A2153E8F4F000B4042 /* CoreBluetooth.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A851A1153E8F4F000B4042 /* CoreBluetooth.framework */; }; | ||
22A851AE153E964B000B4042 /* ThermometerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 22A851AC153E964A000B4042 /* ThermometerViewController.m */; }; | ||
/* End PBXBuildFile section */ | ||
|
||
/* Begin PBXFileReference section */ | ||
22A85186153E8F3E000B4042 /* iOSHealthThermometer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iOSHealthThermometer.app; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
22A8518A153E8F3E000B4042 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; | ||
22A8518C153E8F3E000B4042 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; | ||
22A8518E153E8F3E000B4042 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; | ||
22A85192153E8F3E000B4042 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | ||
22A85196153E8F3E000B4042 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; | ||
22A85198153E8F3E000B4042 /* Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = "<group>"; }; | ||
22A85199153E8F3E000B4042 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; | ||
22A8519A153E8F3E000B4042 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; | ||
22A851A1153E8F4F000B4042 /* CoreBluetooth.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreBluetooth.framework; path = System/Library/Frameworks/CoreBluetooth.framework; sourceTree = SDKROOT; }; | ||
22A851AB153E964A000B4042 /* ThermometerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThermometerViewController.h; sourceTree = "<group>"; }; | ||
22A851AC153E964A000B4042 /* ThermometerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ThermometerViewController.m; sourceTree = "<group>"; }; | ||
/* End PBXFileReference section */ | ||
|
||
/* Begin PBXFrameworksBuildPhase section */ | ||
22A85183153E8F3E000B4042 /* Frameworks */ = { | ||
isa = PBXFrameworksBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
22A851A2153E8F4F000B4042 /* CoreBluetooth.framework in Frameworks */, | ||
22A8518B153E8F3E000B4042 /* UIKit.framework in Frameworks */, | ||
22A8518D153E8F3E000B4042 /* Foundation.framework in Frameworks */, | ||
22A8518F153E8F3E000B4042 /* CoreGraphics.framework in Frameworks */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXFrameworksBuildPhase section */ | ||
|
||
/* Begin PBXGroup section */ | ||
22A8517B153E8F3E000B4042 = { | ||
isa = PBXGroup; | ||
children = ( | ||
22A85190153E8F3E000B4042 /* iOSHealthThermometer */, | ||
22A85189153E8F3E000B4042 /* Frameworks */, | ||
22A85187153E8F3E000B4042 /* Products */, | ||
); | ||
sourceTree = "<group>"; | ||
}; | ||
22A85187153E8F3E000B4042 /* Products */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
22A85186153E8F3E000B4042 /* iOSHealthThermometer.app */, | ||
); | ||
name = Products; | ||
sourceTree = "<group>"; | ||
}; | ||
22A85189153E8F3E000B4042 /* Frameworks */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
22A851A1153E8F4F000B4042 /* CoreBluetooth.framework */, | ||
22A8518A153E8F3E000B4042 /* UIKit.framework */, | ||
22A8518C153E8F3E000B4042 /* Foundation.framework */, | ||
22A8518E153E8F3E000B4042 /* CoreGraphics.framework */, | ||
); | ||
name = Frameworks; | ||
sourceTree = "<group>"; | ||
}; | ||
22A85190153E8F3E000B4042 /* iOSHealthThermometer */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
22A85199153E8F3E000B4042 /* AppDelegate.h */, | ||
22A8519A153E8F3E000B4042 /* AppDelegate.m */, | ||
22A851AB153E964A000B4042 /* ThermometerViewController.h */, | ||
22A851AC153E964A000B4042 /* ThermometerViewController.m */, | ||
22A85191153E8F3E000B4042 /* Supporting Files */, | ||
); | ||
path = iOSHealthThermometer; | ||
sourceTree = "<group>"; | ||
}; | ||
22A85191153E8F3E000B4042 /* Supporting Files */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
22A85192153E8F3E000B4042 /* Info.plist */, | ||
22A85193153E8F3E000B4042 /* InfoPlist.strings */, | ||
22A85196153E8F3E000B4042 /* main.m */, | ||
22A85198153E8F3E000B4042 /* Prefix.pch */, | ||
); | ||
name = "Supporting Files"; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXGroup section */ | ||
|
||
/* Begin PBXNativeTarget section */ | ||
22A85185153E8F3E000B4042 /* iOSHealthThermometer */ = { | ||
isa = PBXNativeTarget; | ||
buildConfigurationList = 22A8519E153E8F3E000B4042 /* Build configuration list for PBXNativeTarget "iOSHealthThermometer" */; | ||
buildPhases = ( | ||
22A85182153E8F3E000B4042 /* Sources */, | ||
22A85183153E8F3E000B4042 /* Frameworks */, | ||
22A85184153E8F3E000B4042 /* Resources */, | ||
); | ||
buildRules = ( | ||
); | ||
dependencies = ( | ||
); | ||
name = iOSHealthThermometer; | ||
productName = iOSHealthThermometer; | ||
productReference = 22A85186153E8F3E000B4042 /* iOSHealthThermometer.app */; | ||
productType = "com.apple.product-type.application"; | ||
}; | ||
/* End PBXNativeTarget section */ | ||
|
||
/* Begin PBXProject section */ | ||
22A8517D153E8F3E000B4042 /* Project object */ = { | ||
isa = PBXProject; | ||
attributes = { | ||
LastUpgradeCheck = 0430; | ||
ORGANIZATIONNAME = "Radtastical Inc."; | ||
}; | ||
buildConfigurationList = 22A85180153E8F3E000B4042 /* Build configuration list for PBXProject "iOSHealthThermometer" */; | ||
compatibilityVersion = "Xcode 3.2"; | ||
developmentRegion = English; | ||
hasScannedForEncodings = 0; | ||
knownRegions = ( | ||
en, | ||
); | ||
mainGroup = 22A8517B153E8F3E000B4042; | ||
productRefGroup = 22A85187153E8F3E000B4042 /* Products */; | ||
projectDirPath = ""; | ||
projectRoot = ""; | ||
targets = ( | ||
22A85185153E8F3E000B4042 /* iOSHealthThermometer */, | ||
); | ||
}; | ||
/* End PBXProject section */ | ||
|
||
/* Begin PBXResourcesBuildPhase section */ | ||
22A85184153E8F3E000B4042 /* Resources */ = { | ||
isa = PBXResourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
22A85195153E8F3E000B4042 /* InfoPlist.strings in Resources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXResourcesBuildPhase section */ | ||
|
||
/* Begin PBXSourcesBuildPhase section */ | ||
22A85182153E8F3E000B4042 /* Sources */ = { | ||
isa = PBXSourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
22A85197153E8F3E000B4042 /* main.m in Sources */, | ||
22A8519B153E8F3E000B4042 /* AppDelegate.m in Sources */, | ||
22A851AE153E964B000B4042 /* ThermometerViewController.m in Sources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXSourcesBuildPhase section */ | ||
|
||
/* Begin PBXVariantGroup section */ | ||
22A85193153E8F3E000B4042 /* InfoPlist.strings */ = { | ||
isa = PBXVariantGroup; | ||
children = ( | ||
); | ||
name = InfoPlist.strings; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXVariantGroup section */ | ||
|
||
/* Begin XCBuildConfiguration section */ | ||
22A8519C153E8F3E000B4042 /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
ARCHS = "$(ARCHS_STANDARD_32_BIT)"; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | ||
COPY_PHASE_STRIP = NO; | ||
GCC_C_LANGUAGE_STANDARD = gnu99; | ||
GCC_DYNAMIC_NO_PIC = NO; | ||
GCC_OPTIMIZATION_LEVEL = 0; | ||
GCC_PREPROCESSOR_DEFINITIONS = ( | ||
"DEBUG=1", | ||
"$(inherited)", | ||
); | ||
GCC_SYMBOLS_PRIVATE_EXTERN = NO; | ||
GCC_VERSION = com.apple.compilers.llvm.clang.1_0; | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES; | ||
GCC_WARN_UNINITIALIZED_AUTOS = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 5.1; | ||
SDKROOT = iphoneos; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
}; | ||
name = Debug; | ||
}; | ||
22A8519D153E8F3E000B4042 /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
ARCHS = "$(ARCHS_STANDARD_32_BIT)"; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | ||
COPY_PHASE_STRIP = YES; | ||
GCC_C_LANGUAGE_STANDARD = gnu99; | ||
GCC_VERSION = com.apple.compilers.llvm.clang.1_0; | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES; | ||
GCC_WARN_UNINITIALIZED_AUTOS = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 5.1; | ||
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; | ||
SDKROOT = iphoneos; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
VALIDATE_PRODUCT = YES; | ||
}; | ||
name = Release; | ||
}; | ||
22A8519F153E8F3E000B4042 /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES; | ||
GCC_PREFIX_HEADER = iOSHealthThermometer/Prefix.pch; | ||
INFOPLIST_FILE = iOSHealthThermometer/Info.plist; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
WRAPPER_EXTENSION = app; | ||
}; | ||
name = Debug; | ||
}; | ||
22A851A0153E8F3E000B4042 /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES; | ||
GCC_PREFIX_HEADER = iOSHealthThermometer/Prefix.pch; | ||
INFOPLIST_FILE = iOSHealthThermometer/Info.plist; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
WRAPPER_EXTENSION = app; | ||
}; | ||
name = Release; | ||
}; | ||
/* End XCBuildConfiguration section */ | ||
|
||
/* Begin XCConfigurationList section */ | ||
22A85180153E8F3E000B4042 /* Build configuration list for PBXProject "iOSHealthThermometer" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
22A8519C153E8F3E000B4042 /* Debug */, | ||
22A8519D153E8F3E000B4042 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
22A8519E153E8F3E000B4042 /* Build configuration list for PBXNativeTarget "iOSHealthThermometer" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
22A8519F153E8F3E000B4042 /* Debug */, | ||
22A851A0153E8F3E000B4042 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
/* End XCConfigurationList section */ | ||
}; | ||
rootObject = 22A8517D153E8F3E000B4042 /* Project object */; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// AppDelegate.h | ||
// iOSHealthThermometer | ||
// | ||
// Created by Tim Burks on 7/2/12. | ||
// Copyright (c) 2012 Radtastical Inc. All rights reserved. | ||
// | ||
|
||
@interface AppDelegate : UIResponder <UIApplicationDelegate> | ||
@property (nonatomic, strong) UIWindow *window; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// AppDelegate.m | ||
// iOSHealthThermometer | ||
// | ||
// Created by Tim Burks on 7/2/12. | ||
// Copyright (c) 2012 Radtastical Inc. All rights reserved. | ||
// | ||
|
||
#import "AppDelegate.h" | ||
#import "ThermometerViewController.h" | ||
|
||
@implementation AppDelegate | ||
|
||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | ||
{ | ||
NSLog(@"Launching"); | ||
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | ||
[self.window makeKeyAndVisible]; | ||
|
||
self.window.rootViewController = [[ThermometerViewController alloc] init]; | ||
return YES; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundleExecutable</key> | ||
<string>${EXECUTABLE_NAME}</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.radtastical.${PRODUCT_NAME:rfc1034identifier}</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0</string> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>UIRequiredDeviceCapabilities</key> | ||
<array> | ||
<string>armv7</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations~ipad</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationPortraitUpsideDown</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// Prefix header for all source files of the 'iOSHealthThermometer' target in the 'iOSHealthThermometer' project | ||
// | ||
|
||
#import <Availability.h> | ||
|
||
#ifndef __IPHONE_3_0 | ||
#warning "This project uses features only available in iOS SDK 3.0 and later." | ||
#endif | ||
|
||
#ifdef __OBJC__ | ||
#import <UIKit/UIKit.h> | ||
#import <Foundation/Foundation.h> | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// ThermometerViewController.h | ||
// iOSHealthThermometer | ||
// | ||
// Created by Tim Burks on 7/2/12. | ||
// Copyright (c) 2012 Radtastical Inc. All rights reserved. | ||
// | ||
|
||
@interface ThermometerViewController : UIViewController | ||
|
||
@end |
Oops, something went wrong.