Difference between revisions of "TelephonyUI.framework"

From iPhone Development Wiki
Jump to: navigation, search
(Created page with 'The Telephony UI is a private framework, includes the iOS "Slide to ..." views(powering off, unlock bar). Since iOS 5 Apple has made changes to accommodate the new notifications …')
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The Telephony UI is a private framework, includes the iOS "Slide to ..." views(powering off, unlock bar). Since iOS 5 Apple has made changes to accommodate the new notifications system.
+
{{infobox Framework
== TPBottomLockBar ==
+
| vis = Private
The slide to... view
+
| since = 1.0
=== Usage: Subclassing ===
+
| classID = TP
<source lang="objc">
+
}}
+ (float)defaultLabelFontSize {
 
//default font size for the label
 
return 20.0f;
 
}
 
  
 +
'''TelephonyUI''' is a private framework which, among other things, includes the Unlock, Power Down, and Answer sliders.
  
- (id)initWithFrame:(struct CGRect)arg1 knobImage:(UIImage *)arg2  {
+
{{Navbox Classes}}
    if((self = [super initWithFrame:arg1 knobImage:arg2])) {
+
{{Navbox Frameworks}}
       
 
    }
 
    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>
 

Latest revision as of 20:04, 5 February 2012

TelephonyUI.framework
Private Framework
Availabile 1.0 – present
Class Prefix TP


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