This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://ruby.taobao.org/ | |
| 如何使用? | |
| $ gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/ | |
| $ gem sources -l | |
| *** CURRENT SOURCES *** | |
| https://ruby.taobao.org | |
| 请确保只有 ruby.taobao.org | |
| $ gem install rails |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma clang diagnostic push | |
| #pragma clang diagnostic ignored "-Wdeprecated-declarations" | |
| [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]]; | |
| #pragma clang diagnostic pop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(UICollectionView *) cateCollectionView | |
| { | |
| if (!_cateCollectionView) { | |
| UICollectionViewFlowLayout *flowLayout = [UICollectionViewFlowLayout new]; | |
| flowLayout.itemSize = CGSizeMake(itemWidth, self.height); | |
| flowLayout.minimumLineSpacing = interitemSpacing; //水平方向横竖参数相反 | |
| flowLayout.sectionInset = UIEdgeInsetsMake(0,horizontalPadding, 0.0,horizontalPadding); | |
| [flowLayout setScrollDirection:UICollectionViewScrollDirectionHorizontal]; | |
| _cateCollectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0.0, 0.0, SCREEN_WIDTH, self.height) collectionViewLayout:flowLayout]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma mark - UITableView | |
| - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section | |
| { | |
| return [self.tabModel.listArray count]; | |
| } | |
| - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath | |
| { | |
| NSObject<FinderCellModelProtocol>* model = self.tabModel.listArray[indexPath.row]; |