在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:fphilipe/PHFComposeBarView开源软件地址:https://github.com/fphilipe/PHFComposeBarView开源编程语言:Objective-C 96.2%开源软件介绍:PHFComposeBarViewMore screenshots: without text and with text. This is a precise reconstruction of the compose bar from the iOS Messages.app, mimicking the behaviors and graphics while also allowing you to customize many aspects of it. It basically consists of a text view, a placeholder label, a utility button located to the left of the text view, and a main button located to the right of the text view. If you're looking for something that works with iOS 5 and 6 featuring the old look and feel, have a look at version 1.1.1. Features
InstallationThe prefered way is to use CococaPods. pod 'PHFComposeBarView', '~> 2.0.1' If you can't use CocoaPods for some reason (you really should though, it's the
cool kid on the block), then grab the files in UsageThe compose bar visible in the demo above was created as follows: CGRect viewBounds = [[self view] bounds];
CGRect frame = CGRectMake(0.0f,
viewBounds.size.height - PHFComposeBarViewInitialHeight,
viewBounds.size.width,
PHFComposeBarViewInitialHeight);
PHFComposeBarView *composeBarView = [[PHFComposeBarView alloc] initWithFrame:frame];
[composeBarView setMaxCharCount:160];
[composeBarView setMaxLinesCount:5];
[composeBarView setPlaceholder:@"Type something..."];
[composeBarView setUtilityButtonImage:[UIImage imageNamed:@"Camera"]];
[composeBarView setDelegate:self]; To get notified of button presses, implement the optional methods from the
- (void)composeBarViewDidPressButton:(PHFComposeBarView *)composeBarView;
- (void)composeBarViewDidPressUtilityButton:(PHFComposeBarView *)composeBarView; To get notified of frame changes, either listen to the notifications
( - (void)composeBarView:(PHFComposeBarView *)composeBarView
willChangeFromFrame:(CGRect)startFrame
toFrame:(CGRect)endFrame
duration:(NSTimeInterval)duration
animationCurve:(UIViewAnimationCurve)animationCurve;
- (void)composeBarView:(PHFComposeBarView *)composeBarView
didChangeFromFrame:(CGRect)startFrame
toFrame:(CGRect)endFrame; Note that all methods from the Refer to Small PrintLicense
DependenciesAuthorPhilipe Fatio (@fphilipe) SponsorsThese people and companies have sponsored the development so far: |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论