Skip to content
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

Update Localizable.strings #305

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"Failed" = "Mislukt";

/* Used in the context: 'Showing 1 of 3 items' */
"of" = "of";
"of" = "van";

/* No comment provided by engineer. */
"Photo" = "Foto";
Expand Down
16 changes: 10 additions & 6 deletions Classes/IDMPhotoBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,14 @@ - (CGRect)getToolbarButtonFrame:(UIImage *)image{
}

- (UIImage*)getImageFromView:(UIView *)view {
UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 2);
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
if(view.bounds.size.width == 0 && view.bounds.size.height == 0) {
return NULL;
}
UIGraphicsImageRenderer *renderer = [[UIGraphicsImageRenderer alloc] initWithSize:view.bounds.size];
UIImage *image = [renderer imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull context) {
[view drawViewHierarchyInRect:view.bounds afterScreenUpdates:true];
}];

return image;
}

Expand Down Expand Up @@ -1139,8 +1143,8 @@ - (BOOL)isLandscape:(UIInterfaceOrientation)orientation
- (CGRect)frameForToolbarAtOrientation:(UIInterfaceOrientation)orientation {
CGFloat height = 44;

if ([self isLandscape:orientation])
height = 32;
// if ([self isLandscape:orientation])
// height = 32;

CGRect rtn = CGRectMake(0, self.view.bounds.size.height - height, self.view.bounds.size.width, height);
rtn = [self adjustForSafeArea:rtn adjustForStatusBar:true];
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
4 changes: 2 additions & 2 deletions IDMPhotoBrowser.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Pod::Spec.new do |s|
s.name = "IDMPhotoBrowser"
s.summary = "Photo Browser / Viewer inspired by Facebook's and Tweetbot's with ARC support, swipe-to-dismiss, image progress and more."
s.version = "1.11.3"
s.version = "1.13"
s.homepage = "https://github.com/ideaismobile/IDMPhotoBrowser"
s.license = { :type => 'MIT', :file => 'LICENSE.txt' }
s.author = { "Eduardo Callado" => "[email protected]" }
s.source = { :git => "https://github.com/ideaismobile/IDMPhotoBrowser.git", :tag => "1.11.3" }
s.source = { :git => "https://github.com/ideaismobile/IDMPhotoBrowser.git", :tag => "1.13" }
s.platform = :ios, '8.0'
s.source_files = 'Classes/*.{h,m}'
s.resources = 'Classes/IDMPhotoBrowser.bundle', 'Classes/IDMPBLocalizations.bundle'
Expand Down