Created
December 11, 2013 03:57
-
-
Save naotokui/7904879 to your computer and use it in GitHub Desktop.
iOS 64bit対応ではまったところ (書きかけ) ref: http://qiita.com/naotokui/items/38c9176ebece6aadf172
This file contains 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
#if defined(__LP64__) && __LP64__ | |
# define CGFLOAT_TYPE double | |
# define CGFLOAT_IS_DOUBLE 1 | |
# define CGFLOAT_MIN DBL_MIN | |
# define CGFLOAT_MAX DBL_MAX | |
#else | |
# define CGFLOAT_TYPE float | |
# define CGFLOAT_IS_DOUBLE 0 | |
# define CGFLOAT_MIN FLT_MIN | |
# define CGFLOAT_MAX FLT_MAX | |
#endif | |
typedef CGFLOAT_TYPE CGFloat; |
This file contains 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
- (CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section |
This file contains 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
- (float) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section |
This file contains 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
#if __LP64__ || (TARGET_OS_EMBEDDED && !TARGET_OS_IPHONE) || TARGET_OS_WIN32 || NS_BUILD_32_LIKE_64 | |
typedef long NSInteger; | |
typedef unsigned long NSUInteger; | |
#else | |
typedef int NSInteger; | |
typedef unsigned int NSUInteger; | |
#endif |
This file contains 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
int index = [someArray indexOfObject: someObj]; | |
if ( index != NSNotFound) { ... } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment