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 am contacting you for a couple of reasons: | |
1.) You have a Purdue CS degree. | |
2.) You told me not to contact you. | |
3.) You obviously like iOS stuff - http://stackoverflow.com/users/53835/sahil | |
4.) Your website is INCREDIBLE: http://sahild.com/ |
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
#!/bin/bash | |
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'` |
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
// the last param must be NSNotFound | |
+ (UIViewAutoresizing)autoresizeWithMask:(UIViewAutoresizing)firstMask, ... { | |
va_list args; | |
va_start(args, firstMask); | |
UIViewAutoresizing autoresizingMask = UIViewAutoresizingNone; | |
for (UIViewAutoresizing nextMask = firstMask; nextMask != NSNotFound; nextMask = va_arg(args, UIViewAutoresizing)) { | |
autoresizingMask |= nextMask; | |
} | |
va_end(args); | |
return autoresizingMask; |