- ARMv8/ARM64:
iPhone 6
,iPhone 5s
,iPad Air
,Retina iPad Mini
- ARMv7s:
iPhone 5
,iPhone 5c
,iPad 4
- ARMv7:
iPhone 3GS
,iPhone 4
,iPhone 4S
,iPod 3G/4G/5G
,iPad
,iPad 2
,iPad 3
,iPad Mini
- ARMv6:
iPhone
,iPhone 3G
,iPod 1G/2G
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
static inline NSPUIImageType NSPUIImageTypeFromData(NSData *imageData) | |
{ | |
if (imageData.length > 4) { | |
const unsigned char * bytes = [imageData bytes]; | |
if (bytes[0] == 0xff && | |
bytes[1] == 0xd8 && | |
bytes[2] == 0xff) | |
{ | |
return NSPUIImageType_JPEG; |
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
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# Version 2.0 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# | |
# 2013 updates: | |
# - fixed the broken "save personal Schemes" | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, |
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
- (NSArray *)keyCommands | |
{ | |
return @[[UIKeyCommand keyCommandWithInput:@"\r" | |
modifierFlags:0 | |
action:@selector(didPressExternalKeyboardReturnButton)]]; | |
} | |
- (void)didPressExternalKeyboardReturnButton | |
{ | |
// do ur action here |
An app must register with Apple Push Notification service (APNs) to receive remote notifications sent by the app’s push provider. In iOS 8 and later, registration has four stages:
- Register the notification types your app supports using
registerUserNotificationSettings:
. - Register to receive push notifications via APNs by calling your app’s
registerForRemoteNotifications
method. - Store the device token returned to the app delegate by the server for a successful registration, or handle registration failure gracefully.
- Forward the device token to the app’s push provider.
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 | |
# | |
# Xcode run script for version, whenever build a new version, | |
# can choose to increase bundle version, update build date | |
# & git latest commit hash. | |
# | |
# | |
# Usage: | |
# | |
# Copy this file under the root folder of the project, and make sure it's executable: |
OlderNewer