if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) {
[self setEdgesForExtendedLayout:UIRectEdgeRight|UIRectEdgeBottom|UIRectEdgeLeft];
}
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
# Istall Ruby by *rbenv* in a MAC | |
+ Download and Install Xcode | |
+ Run: ```xcode-select install``` (xcode-select --install) | |
+ Run: ```brew install rbenv, brew install ruby-build``` | |
+ Run: ```rbenv install 2.0.0-p247``` | |
### READY TO GO |
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
# OS X Finder | |
.DS_Store | |
# Xcode per-user config | |
*.mode1 | |
*.mode1v3 | |
*.mode2v3 | |
*.perspective | |
*.perspectivev3 | |
*.pbxuser |
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
.*.pbxproj binary merge=union |
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. Write: /bin/bash in 'Shell' input | |
# 5. Paste code below in to new "Run Script" section | |
# 6. Drag the "Run Script" below "Link Binaries With Libraries" | |
# 7. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
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
- (UIViewController *)topViewController{ | |
return [self topViewController:[UIApplication sharedApplication].keyWindow.rootViewController]; | |
} | |
- (UIViewController *)topViewController:(UIViewController *)rootViewController | |
{ | |
if (rootViewController.presentedViewController == nil) { | |
return rootViewController; | |
} | |
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
# HIGHLIGHT YOUR TODOS, FIXMES, & ERRORS IN XCODE | |
TAGS="TODO:|FIXME:" | |
ERRORTAG="ERROR:" | |
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$|($ERRORTAG).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | perl -p -e "s/($ERRORTAG)/ error: \$1/" | |
# ------------------------------------------ | |
# CHANGE BUILD VERSION | |
# This splits a two-decimal version string, such as "0.45.123", allowing us to increment the third position. | |
# Dont forget to change the number on BUIL input (Target -> General -> Build) | |
VERSIONNUM=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}") |
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
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime' or one of its dependencies | |
at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x00081] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System/AppDomain.cs:746 | |
at at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName,System.Security.Policy.Evidence) | |
at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System/AppDomain.cs:714 | |
at at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName) | |
at System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac |
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
Building: general_ios_app (Debug|iPhone) | |
Build started 3/3/2017 5:46:54 PM. | |
__________________________________________________ | |
Project "/Users/bubudrc/Projects/general_ios_app/general_ios_app/general_ios_app.csproj" (Build target(s)): | |
Target PrepareForBuild: | |
Configuration: Debug Platform: iPhone | |
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
Building: WeatherApp.iOS (Debug|iPhone) | |
Build started 4/5/2017 5:49:53 PM. | |
__________________________________________________ | |
Project "/Users/bubudrc/GlobalLogic/Xamarin/mobile-samples/Weather/WeatherApp/WeatherApp/WeatherApp.csproj" (Build target(s)): | |
Initial Properties: | |
__CF_USER_TEXT_ENCODING = 0x1F5:0x0:0x0 | |
Apple_PubSub_Socket_Render = /private/tmp/com.apple.launchd.6bHsqsbXBo/Render |
OlderNewer