Skip to content

Commit

Permalink
#28
Browse files Browse the repository at this point in the history
This should solve the layout problem in issue #28
  • Loading branch information
hons82 committed Aug 25, 2015
1 parent c8443f8 commit be81398
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ Install with [CocoaPods](http://cocoapods.org) by adding the following to your P

``` ruby
platform :ios, '6.1'
pod 'THCalendarDatePicker', '~> 1.2.0'
pod 'THCalendarDatePicker', '~> 1.2.1'
```
####Swift

``` ruby
platform :ios, '8.0'
use_frameworks!
pod 'THCalendarDatePicker', '~> 1.2.0'
pod 'THCalendarDatePicker', '~> 1.2.1'
```

**Note**: We follow http://semver.org for versioning the public API.
Expand Down
2 changes: 1 addition & 1 deletion THCalendarDatePicker.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "THCalendarDatePicker"
s.version = "1.2.0"
s.version = "1.2.1"
s.summary = "A DatePicker based on a custom calendar view"
s.homepage = "https://github.com/hons82/THCalendarDatePicker"
s.license = { :type => 'MIT', :file => 'LICENSE.md' }
Expand Down
1 change: 1 addition & 0 deletions THCalendarDatePicker/THDatePickerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ - (void)slideTransitionViewInDirection:(UISwipeGestureRecognizerDirection)dir {
[self addSwipeGestures];
newView.alpha = 0;
[self redraw];
[oldView.superview layoutSubviews];
[UIView animateWithDuration:.5 animations:^{
newView.frame = origFrame;
newView.alpha = 1;
Expand Down
2 changes: 1 addition & 1 deletion THCalendarDatePickerExample/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ DEPENDENCIES:
SPEC CHECKSUMS:
KNSemiModalViewController: 8c0056377714b5170c52c65977d540200405411f

COCOAPODS: 0.37.2
COCOAPODS: 0.38.2
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,26 @@ @interface THCalendarDatePickerExampleTests : XCTestCase

@implementation THCalendarDatePickerExampleTests

- (void)setUp
{
- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown
{
- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

- (void)testExample
{
XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}

- (void)testPerformanceExample {
// This is an example of a performance test case.
[self measureBlock:^{
// Put the code you want to measure the time of here.
}];
}

@end

0 comments on commit be81398

Please sign in to comment.