This file contains 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
NSString* text = @"hoge"; | |
CGSize size = CGSizeMake(380, CGFLOAT_MAX); | |
CGSize textSize = [text sizeWithFont:font constrainedToSize:size lineBreakMode:UILineBreakModeCharacterWrap]; | |
NSLog(@"textSize.height is %f",textSize.height); |
This file contains 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
CGRect frame = view.frame; | |
NSLog(@"%@",NSStringFromCGRect(frame)); |
This file contains 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
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
<#code to be executed once#> | |
}); |
This file contains 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
#ifdef DEBUG | |
#define LOG(...) NSLog(__VA_ARGS__) | |
#else | |
#define LOG(...) ; | |
#endif | |
#ifdef DEBUG | |
#define LINE() NSLog(@"%d",__LINE__) | |
#else | |
#define LINE() ; |
This file contains 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
if ([[UIImageView class] conformsToProtocol:@protocol(NSCopying)]) | |
{ | |
NSLog(@"NSCopying protocol supported"); | |
}else{ | |
NSLog(@"中に誰もいませんよ?"); | |
} |
This file contains 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
if ([hogeImageView respondsToSelector:@selector(copyWithZone:)]) { | |
LOG(@"王大人,copyWithZoneメソッド確認!"); | |
}else{ | |
LOG(@"お前のcopyWithZone:ねーから!wwww"); | |
} |
This file contains 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
find . -name "*.m" -type f -print | xargs grep "hoge" - n -5 > RESULT.txt |
This file contains 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
find . -name "*.m" -type f | wc -l |
This file contains 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
xcodebuild -project hoge.xcodeproj clean DSTROOT="${HOME}/Desktop" SYMROOT="${HOME}/Desktop" | |
xcodebuild -project hoge.xcodeproj -configuration Release -target "hoge" install DSTROOT="${HOME}/Desktop" SYMROOT="${HOME}/Desktop" | |
xcrun -sdk iphoneos PackageApplication "${HOME}/Desktop/Applications/hoge.app" -o "${HOME}/Desktop/Applications/hoge.ipa" -embed "${HOME}/Library/MobileDevice/Provisioning Profiles/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.mobileprovision" | |
dgate push -m "comment" "${HOME}/Desktop/Applications/hoge.ipa" |
This file contains 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
/usr/bin/security find-identity -p codesigning -v |
OlderNewer