Skip to content

update to latest #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions JTSImageViewController.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "JTSImageViewController"
s.version = "1.5"
s.version = "1.5.1"
s.summary = "An interactive iOS image viewer that does it all: double tap to zoom, flick to dismiss, et cetera."
s.homepage = "https://github.com/jaredsinclair/JTSImageViewController"
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand All @@ -9,11 +9,11 @@ Pod::Spec.new do |s|
s.platform = :ios, '7.0'
s.requires_arc = true
s.frameworks = 'UIKit', 'ImageIO', 'Accelerate'

s.compiler_flags = "-fmodules"

s.ios.deployment_target = '7.0'

s.source_files = ['Source/*.{h,m}']

end
9 changes: 6 additions & 3 deletions Sample App/JTSImageVC/JTSImageVC.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
isa = PBXProject;
attributes = {
CLASSPREFIX = JTS;
LastUpgradeCheck = 0510;
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = "Nice Boy, LLC";
TargetAttributes = {
7F9A791B18E754A7000CAA69 = {
Expand Down Expand Up @@ -387,6 +387,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
Expand Down Expand Up @@ -448,6 +449,7 @@
GCC_PREFIX_HEADER = "JTSImageVC/JTSImageVC-Prefix.pch";
INFOPLIST_FILE = "JTSImageVC/JTSImageVC-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.jaredsinclair.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
WARNING_CFLAGS = "";
WRAPPER_EXTENSION = app;
Expand All @@ -463,6 +465,7 @@
GCC_PREFIX_HEADER = "JTSImageVC/JTSImageVC-Prefix.pch";
INFOPLIST_FILE = "JTSImageVC/JTSImageVC-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.jaredsinclair.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
WARNING_CFLAGS = "";
WRAPPER_EXTENSION = app;
Expand All @@ -474,7 +477,6 @@
buildSettings = {
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/JTSImageVC.app/JTSImageVC";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
);
Expand All @@ -485,6 +487,7 @@
"$(inherited)",
);
INFOPLIST_FILE = "JTSImageVCTests/JTSImageVCTests-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = "com.niceboy.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
Expand All @@ -496,13 +499,13 @@
buildSettings = {
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/JTSImageVC.app/JTSImageVC";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "JTSImageVC/JTSImageVC-Prefix.pch";
INFOPLIST_FILE = "JTSImageVCTests/JTSImageVCTests-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = "com.niceboy.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
Expand Down
2 changes: 1 addition & 1 deletion Sample App/JTSImageVC/JTSImageVC/JTSImageVC-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.jaredsinclair.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
2 changes: 1 addition & 1 deletion Sample App/JTSImageVC/JTSImageVC/JTSViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ - (void)viewDidLoad {
self.bigImageButton.layer.cornerRadius = self.bigImageButton.bounds.size.width/2.0f;
}

- (NSUInteger)supportedInterfaceOrientations {
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.niceboy.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
Expand Down
1 change: 1 addition & 0 deletions Source/JTSAnimatedGIFUtility.m
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ static void releaseImages(size_t const count, CGImageRef const images[count]) {
CGImageRef imageRef = CGImageSourceCreateImageAtIndex(source, 0, NULL);
if (imageRef) {
image = [UIImage imageWithCGImage:imageRef];
CGImageRelease(imageRef);
}
} else {
NSArray *const frames = frameArray(count, images, delayCentiseconds, totalDurationCentiseconds);
Expand Down
2 changes: 1 addition & 1 deletion Source/JTSImageViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ - (void)dealloc {

#pragma mark - UIViewController

- (NSUInteger)supportedInterfaceOrientations {
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {

/*
iOS 8 changes the behavior of autorotation when presenting a
Expand Down