parent
b27e1d7c64
commit
8733cf75f7
|
|
@ -1,7 +1,7 @@
|
|||
Pod::Spec.new do |s|
|
||||
|
||||
s.name = "FSCalendar"
|
||||
s.version = "2.1.1"
|
||||
s.version = "2.2.0"
|
||||
s.summary = "Designed to build the best iOS calendar control."
|
||||
|
||||
s.homepage = "https://github.com/WenchaoD/FSCalendar"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.2.0.beta</string>
|
||||
<string>2.2.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
|
|
|||
26
README.md
26
README.md
|
|
@ -9,7 +9,7 @@
|
|||
[](https://gitter.im/WenchaoD/FSCalendar?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
* 在您静静的离开之前,请确保点击了这个按钮<img style="margin-bottom:-12px"" width="72" alt="star" src="https://cloud.githubusercontent.com/assets/5186464/15383105/fcf9cdf0-1dc2-11e6-88db-bf221042a584.png"><br>
|
||||
* Before leaving quietly, please make sure you've taken care of this button very well <img style="margin-bottom:-12px"" width="72" alt="star" src="https://cloud.githubusercontent.com/assets/5186464/15383105/fcf9cdf0-1dc2-11e6-88db-bf221042a584.png">
|
||||
* Before leaving quietly, please make sure you've taken good care of this button.<img style="margin-bottom:-12px"" width="72" alt="star" src="https://cloud.githubusercontent.com/assets/5186464/15383105/fcf9cdf0-1dc2-11e6-88db-bf221042a584.png">
|
||||
|
||||
|
||||
# [中文介绍](http://www.jianshu.com/notebooks/4276521/latest)
|
||||
|
|
@ -37,6 +37,8 @@
|
|||
## Scope handle
|
||||

|
||||
|
||||
> FSCalendar doesn't change frame or the constraint by itself, see [Adjusts frame dynamicly](#adjusts_frame_dynamicly)
|
||||
|
||||
# <a id="installation"></a>Installation
|
||||
|
||||
## CocoaPods:
|
||||
|
|
@ -114,6 +116,28 @@ self.calendar = calendar
|
|||
```
|
||||
<br/>
|
||||
|
||||
## <a id='adjusts_frame_dynamicly' /></a>Warning
|
||||
`FSCalendar` doesn't change frame by itself, Please implement
|
||||
|
||||
* For autoLayout
|
||||
|
||||
```objc
|
||||
- (void)calendar:(FSCalendar *)calendar boundingRectWillChange:(CGRect)bounds animated:(BOOL)animated
|
||||
{
|
||||
_calendarHeightConstraint.constant = CGRectGetHeight(bounds);
|
||||
[self.view layoutIfNeeded];
|
||||
}
|
||||
```
|
||||
|
||||
* For manual layout
|
||||
|
||||
```objc
|
||||
- (void)calendar:(FSCalendar *)calendar boundingRectWillChange:(CGRect)bounds animated:(BOOL)animated
|
||||
{
|
||||
calendar.frame = (CGRect){calendar.frame.origin,bounds.size};
|
||||
}
|
||||
```
|
||||
|
||||
### <a id="roll_with_interface_builder"></a> Roll with Interface Builder
|
||||

|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue