Pbind v1.0.0
Code breaking:
- Use PBButton instead of UIButton+Pbind. Futhermore, the PBButton supports the configuration of title, image, background image and background color for different control states.
- Use formats instead of constraints in PBLayoutMapper. And the constraints is used to support the configuration of Pbind-way constraint format. More details refer to Pbind document.
- Use next.done for the accomplishment of PBClientAction and PBNotification.
- Use PBSwitch instead of UISwitch category to implement the PBInput protocol.
Feature:
- Support configure
actionsfor PBRowMapper. - Support configure
addRowanddeleteRowaction for PBCollectionView. - Support actions with type notify, watch for NSNotification.
- Support configure hidden and enabled property for the navigation item defined by nav in Plist.
- Add enumerators for UIBarButtonSystemItem, UIBarButtonItemStyle and UITableVie
wRowActionStyle. - Support configure an errorRow for PBInput to display error tips just below the input.
- Add grouped property for PBTableViewController to support configuring the style for the controller. If set as YES use UITableViewStyleGrouped.
Bugfixes:
- Move the
numberOfSectionsInTableView:to PBRowDataSource. - Avoid parsing the nested dictionary as a nil value.
- Avoid the nestedly parsing of views and accessoryView dictionary.
Refactors:
- Extract PBDataFetcher to fetch data for the view.
- Extract PBLayoutConstraint to parse the Pbind-way constraint format language.
- Rename the haveNext method to hasNext in PBAction.
- Remove the unused references of PBClientMapper.
- Remove PBRecord.
- Remove NSArray+PBUtils.
Other:
- Use PBClient as the default client for debugging while the user does not register any client alias.