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 *)modalPresenter | |
{ | |
if ([self isKindOfClass:[UINavigationController class]]) { | |
return [((UINavigationController *)self).topViewController modalPresenter]; | |
} else if (self.presentedViewController) { | |
return [self.presentedViewController modalPresenter]; | |
} else { | |
return self; | |
} | |
} |
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
i=0;for old in *.png; do i=$((i+1)); new=$i.$(echo "$old" | sed 's/Simulator Screen Shot - \(.*\) -.*/\1\.png/'); mv "$old" "$new"; done |
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
# Download Transporter by Apple from the Mac App Store | |
# Then one-time init on your computer to store your login in keychain. | |
# (Don't use your main account, create one in App Store Connect with role App Manager!) | |
security add-generic-password -a "$USER" -s 'Transporter Username' -w '<App Store Connect email>' | |
security add-generic-password -a "$USER" -s 'Transporter Password' -w '<App Store Connect password>' | |
# Then: | |
alias Transporter="/Applications/Transporter.app/Contents/itms/bin/iTMSTransporter -u '$(security find-generic-password -s 'Transporter Username' -w)' -p '$(security find-generic-password -s 'Transporter Password' -w)'" | |
# And (optional, used in examples below, replace it with your own Apple-assigned App ID) |