Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a crash when root view controller have to be defined by developer using setRootViewController #129

Open
wants to merge 87 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
dd1e629
initial commit
ideashower Jul 6, 2010
812fe20
Revising README for clarity
ideashower Jul 8, 2010
d37fe7b
README typo
ideashower Jul 8, 2010
cbeff26
Modified SHKRequest to interpret a 201 HTTP status code (Created) as …
Jul 9, 2010
9c60e46
Added Instapaper sharer
Jul 9, 2010
1513111
Merge branch 'master' of github.com:ideashower/ShareKit
ideashower Jul 9, 2010
69bbcaa
Cleaned up SHKInstapaper, Modified SHKSharer to support services with…
ideashower Jul 9, 2010
5a8c40d
created tumblr sharer
Jul 10, 2010
fc9d54e
reverting changes from SHKConfig made by fork
ideashower Jul 12, 2010
dcb84c3
removing user pbx files from example project
ideashower Jul 12, 2010
6f1ca7b
New Configuration Options:
ideashower Jul 12, 2010
b7baddd
last minute cleanups before releasing 0.1.5
ideashower Jul 12, 2010
3b18089
- Fixed logout on device
ideashower Jul 13, 2010
1a6b59c
fixed test case in example project
ideashower Jul 13, 2010
5a66c85
Cleanup
ideashower Jul 13, 2010
38bc1f8
full localization support for ShareKit. Added german.
steipete Jul 19, 2010
2f9da86
completed german localization
steipete Jul 19, 2010
a8785b8
add localization for twitter
steipete Jul 19, 2010
560f60e
BUGFIX: filter out sharers that can't share, thus create no button bu…
steipete Jul 26, 2010
8081db8
fix: add single sharer, not class
steipete Jul 26, 2010
3a6a746
New:
ideashower Jul 27, 2010
692b98a
Version 0.2.0
ideashower Jul 27, 2010
bb42f4c
Add on/off for alphabetical ordering items in ShareMenu
Aug 14, 2010
0af9e32
Fix crash due to asking for session for AutoShare when the Sharer is …
Aug 17, 2010
f83bbca
Username/password texfield should not have autocorrection and autocap…
Aug 17, 2010
07bab21
fix: UIImageJPEGRepresentation specification takes in compression rat…
Aug 18, 2010
0f878ea
add localization for example document
steipete Aug 16, 2010
e505e4d
fixed localization in ShareKit example code
steipete Aug 16, 2010
8fd4ecc
SHKTwitter : added img.ly image sharing for
Aug 24, 2010
779093f
fixing crash caused by malformed error message formatting in case of …
adamawolf Aug 6, 2010
b9fb96a
Fix OAMutableURLRequest bugs with parameters
Aug 24, 2010
dd09d50
Fix UIImageJPEGRepresentation only takes in compression ratio from 0.…
Aug 25, 2010
1e55db2
BUGFIX: in facebook if you login->logout->log back in, the post windo…
adamawolf Aug 16, 2010
1b407d8
Added session proxy support for Facebook Connect.
Aug 3, 2010
f084a13
Modified Facebook logout code to work with session proxying.
Aug 3, 2010
4ffde13
Better Error handling for image upload
Aug 24, 2010
83d0c56
Fix bug on image upload url checking
Aug 25, 2010
cf3bdfb
- New: Option to disable 'shared with …' email signature
ideashower Aug 26, 2010
095b2c9
cleanup
ideashower Aug 26, 2010
a41fde8
- Fixed: Offline sharing of images and files
ideashower Aug 26, 2010
bc26043
Missed SHKSwizzle header update
ideashower Aug 27, 2010
7f35b4e
Reverted objc-class import line
ideashower Aug 30, 2010
1c13c62
in progress
Oct 6, 2010
b136deb
in progress
ngs Oct 6, 2010
0d959bb
SHKEvernote
ngs Oct 6, 2010
0aeea56
Clip shorten URLs to Evernote / Copy/ Mail
ngs Oct 7, 2010
13c16e0
Define should attach shorten URLs to Emails or Pasteboard with constants
ngs Oct 12, 2010
5860033
Added document
ngs Oct 12, 2010
0ab15b4
dded document
ngs Oct 12, 2010
4b1563c
Merge branch 'master' of github.com:ngs/ShareKit
ngs Oct 12, 2010
c2fcd98
Merge branch 'master' of github.com:ngs/ShareKit
ngs Oct 12, 2010
5b288a5
Added document
ngs Oct 12, 2010
4adb065
Merge branch 'master' of github.com:ngs/ShareKit
ngs Oct 12, 2010
71208ad
Forgot to set note property.
ngs Oct 12, 2010
9720e2f
forgot using NSAutoreleasePool in subthread method
ngs Oct 26, 2010
40130d6
Added translation to Basque language
esti Sep 7, 2010
34f7f3b
Added dutch translation
wbroek Oct 5, 2010
0adb417
Merge branch 'master' of https://github.com/ngs/ShareKit into ngs-master
ideashower Nov 15, 2010
facf8eb
Fixed memory leaks in OAuth helper classes.
Nov 8, 2010
0e3dd3e
Fixed crash when clicking "More" after the original rootViewControlle…
Nov 8, 2010
b04d238
Made some strings localizable.
luosheng Nov 9, 2010
f8fab1f
Added localization strings for Simplified Chinese.
luosheng Nov 9, 2010
6ea78b0
Merge branch 'master' of github.com:ideashower/ShareKit
ideashower Nov 15, 2010
81ffd1f
proj
ideashower Nov 15, 2010
e447d47
Add Vietnamese localization
quanganhdo Oct 7, 2010
7f34144
Added translation to Korean language.
Sep 18, 2010
35aca82
Added some strings for localization.
Sep 18, 2010
e4c0314
Added text message capabilities for SMS messages.
maarek Sep 21, 2010
952aed9
Fixed warnings so we can compile with warnings as
jamiebriant Sep 27, 2010
bfc9c9a
Updated gitignore
jamiebriant Sep 28, 2010
1bc8b48
Fixed warning
jamiebriant Oct 2, 2010
b0b8a5d
Fixed unreleased views.
Sep 23, 2010
fff40a5
Fixed empty view when no mail account is registered.
Sep 23, 2010
7bfd9f0
Atomic synthesized setters can't be pairer with implemented getters
treelinelabs Aug 30, 2010
ca11f25
Use the instance, not the class, as the delegate
treelinelabs Aug 30, 2010
7bc337d
- Added French Localization
ideashower Nov 15, 2010
6a005c3
Merge branch 'master' of github.com:ideashower/ShareKit
ideashower Nov 15, 2010
75dce48
Fixing merge issues
ideashower Nov 15, 2010
e3642d9
Removing files that were moved
ideashower Nov 15, 2010
2121cbc
Fix a crash when root view controller have to be defined by developer…
Nov 22, 2010
03f16da
Add support for 'caption' and 'description' fields in Facebook URL sh…
Sep 17, 2010
bfaa9f1
Add auto-detection of Dailymotion video links when sharing on Faceboo…
Sep 17, 2010
bec7243
Add dailymotion video link detection to tumblr service and add embed …
Sep 17, 2010
3f016b4
Fix static analyser warnings
Sep 17, 2010
1c85119
Encode capture and description for Facebook service
Sep 17, 2010
1d7516d
Fix some more static analyzer warnings
Sep 18, 2010
8a7f1da
Fix twice released object
Nov 22, 2010
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
@@ -0,0 +1,8 @@
.DS_Store
*~
*.pbxuser
*.perspective
*.perspectivev3
*.mode1v3
build
.DS_Store
38 changes: 38 additions & 0 deletions Classes/Example/ExampleShareFile.h
@@ -0,0 +1,38 @@
//
// ExampleShareFile.h
// ShareKit
//
// Created by Nathan Weiner on 6/29/10.

//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

#import <Foundation/Foundation.h>


@interface ExampleShareFile : UIViewController <UIWebViewDelegate>
{
UIWebView *webView;
}

@property (nonatomic, retain) UIWebView *webView;

@end
83 changes: 83 additions & 0 deletions Classes/Example/ExampleShareFile.m
@@ -0,0 +1,83 @@
//
// ExampleShareFile.m
// ShareKit
//
// Created by Nathan Weiner on 6/29/10.

//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

#import "ExampleShareFile.h"
#import "SHK.h"
#import "SHKActionSheet.h"

@implementation ExampleShareFile

@synthesize webView;

- (void)dealloc
{
[webView release];
[super dealloc];
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])
{
self.toolbarItems = [NSArray arrayWithObjects:
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease],
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(share)] autorelease],
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease],
nil
];
}

return self;
}

- (void)loadView
{
self.webView = [[UIWebView alloc] initWithFrame:CGRectZero];
webView.delegate = self;
webView.scalesPageToFit = YES;
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"example.pdf"]]]];

self.view = webView;
[webView release];
}

- (void)share
{
NSString *filePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"example.pdf"];
NSData *file = [NSData dataWithContentsOfFile:filePath];

SHKItem *item = [SHKItem file:file filename:@"Awesome.pdf" mimeType:@"application/pdf" title:@"My Awesome PDF"];
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
[actionSheet showFromToolbar:self.navigationController.toolbar];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}

@end
38 changes: 38 additions & 0 deletions Classes/Example/ExampleShareImage.h
@@ -0,0 +1,38 @@
//
// ExampleShareImage.h
// ShareKit
//
// Created by Nathan Weiner on 6/18/10.

//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

#import <UIKit/UIKit.h>


@interface ExampleShareImage : UIViewController
{
UIImageView *imageView;
}

@property (nonatomic, retain) UIImageView *imageView;

@end
83 changes: 83 additions & 0 deletions Classes/Example/ExampleShareImage.m
@@ -0,0 +1,83 @@
//
// ExampleShareImage.m
// ShareKit
//
// Created by Nathan Weiner on 6/18/10.

//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

#import "ExampleShareImage.h"
#import "SHKItem.h"
#import "SHKActionSheet.h"

@implementation ExampleShareImage

@synthesize imageView;

- (void)dealloc
{
[imageView release];
[super dealloc];
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])
{
self.toolbarItems = [NSArray arrayWithObjects:
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease],
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(share)] autorelease],
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease],
nil
];
}

return self;
}

- (void)loadView
{
[super loadView];

self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"sanFran.jpg"]];

imageView.frame = CGRectMake(0,0,self.view.bounds.size.width,self.view.bounds.size.height);

[self.view addSubview:imageView];

[imageView release];
}

- (void)share
{
SHKItem *item = [SHKItem image:imageView.image title:@"San Francisco"];
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];

[actionSheet showFromToolbar:self.navigationController.toolbar];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}

@end
38 changes: 38 additions & 0 deletions Classes/Example/ExampleShareLink.h
@@ -0,0 +1,38 @@
//
// ExampleShareLink.h
// ShareKit
//
// Created by Nathan Weiner on 6/17/10.

//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

#import <UIKit/UIKit.h>


@interface ExampleShareLink : UIViewController <UIWebViewDelegate>
{
UIWebView *webView;
}

@property (nonatomic, retain) UIWebView *webView;

@end
79 changes: 79 additions & 0 deletions Classes/Example/ExampleShareLink.m
@@ -0,0 +1,79 @@
//
// ExampleShareLink.m
// ShareKit
//
// Created by Nathan Weiner on 6/17/10.

//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

#import "ExampleShareLink.h"
#import "SHK.h"

@implementation ExampleShareLink

@synthesize webView;

- (void)dealloc
{
[webView release];
[super dealloc];
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])
{
self.toolbarItems = [NSArray arrayWithObjects:
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease],
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(share)] autorelease],
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease],
nil
];
}

return self;
}

- (void)share
{
SHKItem *item = [SHKItem URL:webView.request.URL title:[webView pageTitle]];
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
[actionSheet showFromToolbar:self.navigationController.toolbar];
}

- (void)loadView
{
self.webView = [[UIWebView alloc] initWithFrame:CGRectZero];
webView.delegate = self;
webView.scalesPageToFit = YES;
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://apple.com"]]];

self.view = webView;
[webView release];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}

@end