Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed issue publish new diary inspite of editing diary.

  • Loading branch information...
commit 517445c14443933964f9c5b0887ca14e0842fe41 1 parent f4cbafd
@kishikawakatsumi authored
View
2  Classes/DiaryViewController.m
@@ -347,7 +347,7 @@ - (void)submit:(id)sender {
if (self.isDraft) {
//下書きを公開
[diaryUploader publishDraft:diary editURI:self.editURI];
- } else if (self.isDraft) {
+ } else if (self.editURI) {
//既存の記事を編集
[diaryUploader updateDiary:diary editURI:self.editURI];
} else {
View
7 Classes/NetworkActivityManager.m
@@ -36,14 +36,15 @@ - (void)pushActivity:(id)identifier {
if ([networkStack count] == 0) {
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
}
- NSObject *obj = [[NSObject alloc] init];
NSMutableArray *stack = [networkStack objectForKey:identifier];
if (!stack) {
stack = [NSMutableArray array];
[networkStack setObject:stack forKey:identifier];
+
+ NSObject *obj = [[NSObject alloc] init];
+ [stack addObject:obj];
+ [obj release];
}
- [stack addObject:obj];
- [obj release];
}
- (void)popActivity:(id)identifier {
View
1  Classes/WebViewController.m
@@ -23,6 +23,7 @@ @implementation WebViewController
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
[[NetworkActivityManager sharedInstance] popActivity:NSStringFromClass([self class])];
+ web.delegate = nil;
self.pageURL = nil;
self.comments = nil;
self.connection = nil;
Please sign in to comment.
Something went wrong with that request. Please try again.