For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
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
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
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
PHFetchResult* assets = [PHAsset fetchAssetsWithOptions:self.defaultOptions]; | |
[assets enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { | |
[list addObject:obj]; | |
}]; | |
PHFetchResult* collections = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeAlbum subtype:PHAssetCollectionSubtypeAlbumCloudShared options:nil]; | |
[collections enumerateObjectsUsingBlock:^(PHAssetCollection* collection, NSUInteger idx, BOOL *stop) { | |
PHFetchResult* assets2 = [PHAsset fetchAssetsInAssetCollection:collection options:options]; | |
[assets2 enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { |
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
# Switch xcrun to leverage Xcode 7 | |
# Note: This won't be needed once Xcode 7 is released | |
# and becomes the primary Xcode in use. | |
export DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer/ | |
# Export Archive | |
xcrun xcodebuild -exportArchive -exportOptionsPlist exportPlist.plist -archivePath /path/to/app.xcarchive -exportPath /path/to/app.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
Available keys for -exportOptionsPlist: | |
compileBitcode : Bool | |
For non-App Store exports, should Xcode re-compile the app from bitcode? Defaults to YES. | |
embedOnDemandResourcesAssetPacksInBundle : Bool | |
For non-App Store exports, if the app uses On Demand Resources and this is YES, asset packs are embedded in the app bundle so that the app can be tested without a server to host asset packs. Defaults to YES unless onDemandResourcesAssetPacksBaseURL is specified. |
This cheatsheet includes most of the byebug commands organized by related commands (e.g. breakpoint related commands are together).
To see official help...
Command | Aliases | Example | Comments |
---|---|---|---|
help |
h |
h |
list top level of all commands |
help cmd |
h cmd-alias |
h n |
list the details of a command (example shows requesting details for the next command) (this works for all commands) |