Skip to content

Instantly share code, notes, and snippets.

@naotokui
Created December 11, 2013 03:57
Show Gist options
  • Save naotokui/7904879 to your computer and use it in GitHub Desktop.
Save naotokui/7904879 to your computer and use it in GitHub Desktop.
iOS 64bit対応ではまったところ (書きかけ) ref: http://qiita.com/naotokui/items/38c9176ebece6aadf172
#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;
- (CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
- (float) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
#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
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