Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix Text Field on iOS 8
Browse files Browse the repository at this point in the history
  • Loading branch information
张国晔 committed Nov 16, 2014
1 parent 09f6e61 commit 7a502ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Tweak.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
@end

@interface CKTranscriptCollectionViewController : UIViewController <MFMailComposeViewControllerDelegate>
@property(nonatomic) UIViewController *delegate;
- (id<CKMessage>)messageForBalloonView:(id)view; // iOS 7
- (CKMessagePartChatItem *)messagePartForBalloonView:(id)view; // iOS 8
- (void)balloonView:(id)view report:(id)sender; // iOS 8
Expand Down
3 changes: 2 additions & 1 deletion Tweak.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ - (void)balloonView:(id)view report:(id)sender {
IMMessage *message = [self messagePartForBalloonView:view].message;
date = message.time;
address = message.sender.ID;
[self.delegate setEditing:YES animated:NO];
}

mc.mailComposeDelegate = self;
Expand All @@ -70,7 +71,7 @@ - (BOOL)balloonView:(id)view canPerformAction:(SEL)action withSender:(id)sender

%new
- (void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error {
[self dismissViewControllerAnimated:YES completion:nil];
[self.delegate dismissViewControllerAnimated:YES completion:nil];
}

%end
Expand Down
2 changes: 1 addition & 1 deletion control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: com.ccdog.imessagespamreporter
Name: iMessageSpamReporter
Depends: firmware (>= 7.0), mobilesubstrate
Version: 1.2
Version: 1.3
Architecture: iphoneos-arm
Description: Report iMessage spam to Apple in Messages.app.
Author: CC-Dog <cc941201@gmail.com>
Expand Down

0 comments on commit 7a502ee

Please sign in to comment.