Turn off iPhone/Safari input element rounding

On iOS 5 and later: input { border-radius: 0; } input[type=”search”] { -webkit-appearance: none; } If you must only remove the rounded corners on iOS or otherwise for some reason cannot normalize rounded corners across platforms, use input { -webkit-border-radius: 0; } property instead, which is still supported. Of course do note that Apple can … Read more

AVFoundation, how to turn off the shutter sound when captureStillImageAsynchronouslyFromConnection?

I used this code once to capture iOS default shutter sound (here is list of sound file names https://github.com/TUNER88/iOSSystemSoundsLibrary): NSString *path = @”/System/Library/Audio/UISounds/photoShutter.caf”; NSString *docs = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; NSData *data = [NSData dataWithContentsOfFile:path]; [data writeToFile:[docs stringByAppendingPathComponent:@”photoShutter.caf”] atomically:YES]; Then I used third-party app to extract photoShutter.caf from Documents directory (DiskAid for Mac). Next step … Read more

Missing Compliance status in TestFlight

Unless your app is using some special encryption you can simply add Boolean a key to your Info.plist with name ITSAppUsesNonExemptEncryption and value false. In code: <key>ITSAppUsesNonExemptEncryption</key> <false/> If you want to use the Xcode UI instead, head over to the Project > Target > Info panel, add a new “App Uses Non-Exempt Encryption” Boolean … Read more

How to determine the current iPhone/device model?

I made this “pure Swift” extension on UIDevice. If you are looking for a more elegant solution you can use my µ-framework DeviceKit published on GitHub (also available via CocoaPods, Carthage and Swift Package Manager). Here’s the code: import UIKit public extension UIDevice { static let modelName: String = { var systemInfo = utsname() uname(&systemInfo) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)