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
- (void)setExtraCellLineHidden: (UITableView *)tableView | |
{ | |
UIView *view =[ [UIView alloc]init]; | |
view.backgroundColor = [UIColor clearColor]; | |
[tableView setTableFooterView:view]; | |
[view release]; | |
} |
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
cell.selectedBackgroundView = [[[UIView alloc] initWithFrame:cell.frame] autorelease]; | |
cell.selectedBackgroundView.backgroundColor = [UIColor xxxxxx]; |
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
- (void)setExtraCellLineHidden: (UITableView *)tableView | |
{ | |
UIView *view =[ [UIView alloc]init]; | |
view.backgroundColor = [UIColor clearColor]; | |
[tableView setTableFooterView:view]; | |
[view release]; | |
} |
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
+ (CGFloat)heightOfComment:(NSString *)comment { | |
UILabel *label = PrototypeCell.commentLabel; | |
// NOTE: The height of the comment should always be at least the height of | |
// one line of text. | |
if (comment.length == 0) | |
comment = @" "; | |
return [comment sizeWithFont:label.font | |
constrainedToSize:label.frame.size |
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
version=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $PRODUCT_SETTINGS_PATH` | |
version=`expr $version + 1` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $version" $PRODUCT_SETTINGS_PATH | |
#/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $version" $PRODUCT_SETTINGS_PATH 这行代码会让version也自增,一般不需要 |
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
$ git push mathnet +dd61ab32^:master |
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
@implementation UIView (FindFirstResponder) | |
- (UIView *)findFirstResponder | |
{ | |
if (self.isFirstResponder) { | |
return self; | |
} | |
for (UIView *subView in self.subviews) { | |
UIView *firstResponder = [subView findFirstResponder]; |
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
platforms/ | |
plugins/ |
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
// | |
// UIImage+Autoresize.h | |
// UIImage+Autoresize | |
// | |
// Created by kevin delord on 24/04/14. | |
// Copyright (c) 2014 Kevin Delord. All rights reserved. | |
// | |
#ifndef UIImage_Autoresize_h__ | |
#define UIImage_Autoresize_h__ |
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
# xcode-build-bump.sh | |
# @desc Auto-increment the build number every time the project is run. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |