Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
TelephonyUI.framework: Difference between revisions - iPhone Development Wiki

TelephonyUI.framework: Difference between revisions

From iPhone Development Wiki
m (moved TelephonyUI to TelephonyUI.framework: Dot-framework-ize!)
No edit summary
 
Line 6: Line 6:


'''TelephonyUI''' is a private framework which, among other things, includes the Unlock, Power Down, and Answer sliders.
'''TelephonyUI''' is a private framework which, among other things, includes the Unlock, Power Down, and Answer sliders.
== TPBottomLockBar ==
The slide to... view
=== Usage: Subclassing ===
<source lang="objc">
+ (float)defaultLabelFontSize {
//default font size for the label
return 20.0f;
}
- (id)initWithFrame:(struct CGRect)arg1 knobImage:(UIImage *)arg2  {
    if((self = [super initWithFrame:arg1 knobImage:arg2])) {
       
    }
    return self;
}
- (BOOL)allowsTouchTrackingBeyondVerticalThreshold {
//allows for continuation of tracking if the UITouch strays outside the view
    return YES;
}
- (BOOL)usesBackgroundImage {
    //Use the default background image, the background to the slide to unlock view on the lock screen
    return NO;
}
- (void)unlock {
//When the user has completed the unlock gesture
}
- (id)wellImageName {
    // the well image that the knob slides in, images are inside of the TelephonyUI.framework
    //this is the background image used in the notifications on the lockscreen
    return @"BulletinWellLock";
}
- (float)knobTrackInsetLeft {
  //set the inset of where the knob view starts, based off it's superview
    return 18.0f;
}
- (float)knobTrackInsetRight {
  //set the where the knob finishes, when it slides all the way
    return 18.0f;
}
- (float)_calcKnobYOffset {
  // move the knob up or down
return 0.0f;
}
- (void)downInKnob {
  //When the user presses down on the knob
}
- (void)upInKnob {
  //user lifts up on knob
}
</source>
=== Usage: Text Label ===
======  the text label includes features such as the animating text, and multiple label cycling ======
<source lang="objc">
//to set one label
[myTPBottomLockBar setLabel:@"blah blah blah"];
//to set multiple labels
[myTPBottomLockBar setLabels:[NSArray arrayWithObjects:@"Label 1",@"Label 2", @"Label 3",nil]];
//cycling labels
[myTPBottomLockBar startCyclingLabels];
[myTPBottomLockBar stopCyclingLabels];
[myTPBottomLockBar cycleToNextLabel];
[myTPBottomLockBar cycleToLabelAtIndex:index];
//text animation
[myTPBottomLockBar startAnimating];
[myTPBottomLockBar stopAnimating];
//set font size
[myTPBottomLockBar setFontSize:20.0f];
</source>


{{Navbox Classes}}
{{Navbox Classes}}
{{Navbox Frameworks}}
{{Navbox Frameworks}}

Latest revision as of 20:04, 5 February 2012

TelephonyUI.framework
Private Framework
Availabile 1.0 – present
Class Prefix TP
Headers [headers.cynder.me]


TelephonyUI is a private framework which, among other things, includes the Unlock, Power Down, and Answer sliders.