#import <UIKit/UIKit.h>
#import <AddressBook/AddressBook.h>
+#import <SpringBoard/SBStatusBarController.h>
#import <SpringBoardUI/SBAwayViewPluginController.h>
#import <TelephonyUI/TPBottomLockBar.h>
@end
static Class $CydgetController(objc_getClass("CydgetController"));
+static Class $UIFormAssistant(objc_getClass("CydgetController"));
+static Class $SBStatusBarController(objc_getClass("SBStatusBarController"));
@interface NSString (UIKit)
- (NSString *) stringByAddingPercentEscapes;
- (id) init {
CGRect frame = {{0, 0}, {320, 480}};
- frame.size.height -= GSDefaultStatusBarHeight();
+ frame.size.height -= [[[$SBStatusBarController sharedStatusBarController] statusBarView] frame].size.height;
if ((self = [super initWithFrame:frame]) != nil) {
loading_ = [[NSMutableSet alloc] initWithCapacity:3];
if ([document_ respondsToSelector:@selector(enableReachability)])
[document_ enableReachability];
-
- [document_ setAllowsMessaging:YES];
-
+ if ([document_ respondsToSelector:@selector(setAllowsMessaging:)])
+ [document_ setAllowsMessaging:YES];
if ([document_ respondsToSelector:@selector(useSelectionAssistantWithMode:)])
[document_ useSelectionAssistantWithMode:0];
[document_ setDelegate:self];
[document_ setGestureDelegate:self];
- [document_ setFormEditingDelegate:self];
+
+ if ([document_ respondsToSelector:@selector(setFormEditingDelegate:)])
+ [document_ setFormEditingDelegate:self];
[document_ setInteractionDelegate:self];
[scroller_ addSubview:document_];
/* XXX: WebThreadLock? */
- (void) _fixScroller:(CGRect)bounds {
float extra;
- if (!editing_)
+ if (!editing_ || $UIFormAssistant == nil)
extra = 0;
else {
- UIFormAssistant *assistant([UIFormAssistant sharedFormAssistant]);
+ UIFormAssistant *assistant([$UIFormAssistant sharedFormAssistant]);
CGRect peripheral([assistant peripheralFrame]);
extra = peripheral.size.height;
}
Section: Development
Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
Architecture: iphoneos-arm
-Version: 0.9.3141-1
+Version: 0.9.3160-1
Description: framework for managing lock screen plugins
Name: Cydget
Depends: mobilesubstrate (>= 0.9.2587-1), firmware (>= 2.2), preferenceloader, apr-lib, pcre, cycript (>= 0.9.292-1)