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
<link rel="stylesheet" href="/style/smart/table.css?{($smarty.now|date_format:"%Y-%m-%d %H:%M:%S")}" type="text/css" /> |
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
- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view | |
{ | |
// MKAnnotationViewを拡張した独自Annotation | |
if ([view.annotation isMemberOfClass:[HogeAnnotationEx class]]) { | |
MapPin *pin = (HogeAnnotationEx *)view.annotation; | |
// 独自Annotationにタイプとか定義しとく | |
if (pin.type == hoge) { | |
LOG(@"user"); |
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
#ifdef __OBJC__ | |
#import <UIKit/UIKit.h> | |
#import <Foundation/Foundation.h> | |
#import <CoreData/CoreData.h> | |
#endif |
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
#ifdef DEBUG | |
#define LOG(...) NSLog(__VA_ARGS__) | |
#define LOG_PRINTF(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]); | |
#define LOG_FUNC NSLog(@"%s", __func__) | |
#define LOG_METHOD_AND_ABORT LOG_METHOD; abort() | |
#else | |
#define LOG(...) | |
#define LOG_PRINTF(FORMAT, ...) | |
#define LOG_FUNC | |
#define LOG_METHOD_AND_ABORT |
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
HogeAppDelegate *appDelegate = (HogeAppDelegate *)[[UIApplication sharedApplication] delegate]; |
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
CGFloat lat, lng; | |
CLLocationCoordinate2D coordinate = CLLocationCoordinate2DMake(lat,lng); |
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
Mon Feb 17 11:36:30 +0000 2014 |
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
#import <Foundation/Foundation.h> | |
typedef void (^BlockSampleCallBack)(NSArray *foo); | |
@interface BlockSample : NSObject | |
- (void)hoge:(NSString *)fuga callback:(BlockSampleCallBack)callback; | |
@end |
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
- (void)viewDidLoad | |
{ | |
SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; | |
tweetSheet.view.hidden = YES; | |
[self presentViewController:tweetSheet animated:NO completion:^{ | |
[self dismissViewControllerAnimated:NO completion:nil]; | |
}]; | |
} |