前台打印机正常后厨打印机打不出单子不了光出测试纸

你的偶像正在直播中,
可用的推荐票
QQ自定义分享方法
礼物加载异常,请点击重试
礼物正在加载中,请稍后......
╮(╯_╰)╭还没有人送过礼物呢~
加载异常,请刷新重试
0人正在看,0条互动
发射用户:0数
弹幕上限:3000条
现在还没有弹幕哦!
等你来一发~
(⊙o⊙)…弹幕跑到火星去了
请点击找回
,即可发射弹幕!
\(≧▽≦)/
↖(^ω^)↗
╮(╯_╰)╭
(*  ̄︿ ̄)
(*@ο@*)
┏(゜ω゜)=?
╭Σ( ° △ °|||)
(~﹃~)~zZ
同专辑作品(0)
作者作品(0)
没有数据了
加载异常,请刷新重试
我来说两句...
现在还没有评论哦~快来抢沙发!
加载异常,请刷新重试
版权声明:
未经爱拍原创授权,任何第三方不得以转载、修改、复制、出版及其他方式使用本站视频。
首次下载爱拍APP
领百元新人礼包
粤网文[8号
爱拍网违法和不良信息举报电话:
举报邮箱:
版权所有 广州爱拍网络科技有限公司自定义指定内容分享到QQ好友或群这是一款功能强大、操作的资源分享软件,用户可以用这款软件把资源的分享到群里或者QQ好友那,只要输入网址就可以了,喜欢就来下载吧。使用方法1.下载并运行软件,输入需要分享的内容网址。2.输入标题和内容,点击打开,选择需要分享的QQ好友或群,点击确定即可。
高速下载器通道:
其他下载地址:
现实生活中很多软件都要vip才可以更好的使用,比如迅雷会员的离线下载,爱奇艺vip跳广告看vip专属电影,很多人都不想花这钱,觉得冤枉,91小编给大家带来伐木累...
792.00KB/简体中文
27.80MB/简体中文
1.24MB/简体中文
932.00KB/简体中文
2.10MB/简体中文
2.00KB/简体中文shareSDK自定义分享界面UI
今天设计又给了几个界面的标注,要求完善UI,其中就包括分享界面,于是我立即询问shareSDK的技术支持(找到shareSDK的官网,然后点击企业QQ就可以询问了),技术支持给的解释是,如果要用shareSDK自带的UI,分享界面是不能修改的,只能更改分享平台的小图标和小图标下面的文字,如果非要更改分享界面,只能自己画UI,然后调用shareSDK的无UI分享方法。shareSDK技术支持给了一个链接,让我参考,点击进入,于是我自定义了一个分享类,然后只需要在分享事件的方法中构建分享内容publishContent,
传入[ShareCustom shareWithContent:publishContent];即可
下面是设计给的标注图以及我做出来的效果图:
下面是实现代码:(我自定义了一个专门分享的类)
//下面是.h文件
Copyright (c) 2015年 yanhong. All rights reserved.
自定义的分享类,使用的是类方法,其他地方只要 构造分享内容publishContent就行了
@interface ShareCustom : NSObject
+(void)shareWithContent:(id)publishC//自定义分享界面
//下面是.m文件
Copyright (c) 2015年 yanhong. All rights reserved.
#import &ShareCustom.h&
//设备物理大小
#define kScreenWidth
[UIScreen mainScreen].bounds.size.width
#define kScreenHeight
[UIScreen mainScreen].bounds.size.height
#define SYSTEM_VERSION
[[UIDevice currentDevice].systemVersion floatValue]
//屏幕宽度相对iPhone6屏幕宽度的比例
#define KWidth_Scale
[UIScreen mainScreen].bounds.size.width/375.0f
@implementation ShareCustom
static id _publishC//类方法中的全局变量这样用(类型前面加static)
自定义的分享类,使用的是类方法,其他地方只要 构造分享内容publishContent就行了
+(void)shareWithContent:(id)publishContent/*只需要在分享按钮事件中 构建好分享内容publishContent传过来就好了*/
_publishContent = publishC
UIWindow *window = [UIApplication sharedApplication].keyW
UIView *blackView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight)];
blackView.backgroundColor = [UIColor colorWithString:@&000000& Alpha:0.85f];
blackView.tag = 440;
[window addSubview:blackView];
UIView *shareView = [[UIView alloc] initWithFrame:CGRectMake((kScreenWidth-300*KWidth_Scale)/2.0f, (kScreenHeight-270*KWidth_Scale)/2.0f, 300*KWidth_Scale, 270*KWidth_Scale)];
shareView.backgroundColor = [UIColor colorWithString:@&f6f6f6&];
shareView.tag = 441;
[window addSubview:shareView];
UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, shareView.width, 45*KWidth_Scale)];
titleLabel.text = @&分享到&;
titleLabel.textAlignment = NSTextAlignmentC
titleLabel.font = [UIFont systemFontOfSize:15*KWidth_Scale];
titleLabel.textColor = [UIColor colorWithString:@&2a2a2a&];
titleLabel.backgroundColor = [UIColor clearColor];
[shareView addSubview:titleLabel];
NSArray *btnImages = @[@&-微信@2x.png&, @&IOS-朋友圈@2x.png&, @&IOS-qq@2x.png&, @&IOS-空间@2x.png&, @&IOS-微信收藏@2x.png&, @&IOS-微博@2x.png&, @&IOS-豆瓣@2x.png&, @&IOS-短信@2x.png&];
NSArray *btnTitles = @[@&微信好友&, @&微信朋友圈&, @&QQ好友&, @&QQ空间&, @&微信收藏&, @&新浪微博&, @&豆瓣&, @&短信&];
for (NSInteger i=0; i&8; i++) {
CGFloat top = 0.0f;
if (i&4) {
top = 10*KWidth_S
top = 90*KWidth_S
UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(10*KWidth_Scale+(i%4)*70*KWidth_Scale, titleLabel.bottom+top, 70*KWidth_Scale, 70*KWidth_Scale)];
[button setImage:[UIImage imageNamed:btnImages[i]] forState:UIControlStateNormal];
[button setTitle:btnTitles[i] forState:UIControlStateNormal];
button.titleLabel.font = [UIFont systemFontOfSize:11*KWidth_Scale];
button.titleLabel.textAlignment = NSTextAlignmentC
[button setTitleColor:[UIColor colorWithString:@&2a2a2a&] forState:UIControlStateNormal];
[button setContentHorizontalAlignment:UIControlContentHorizontalAlignmentCenter];
[button setContentVerticalAlignment:UIControlContentVerticalAlignmentTop];
[button setImageEdgeInsets:UIEdgeInsetsMake(0, 15*KWidth_Scale, 30*KWidth_Scale, 15*KWidth_Scale)];
if (SYSTEM_VERSION &= 8.0f) {
[button setTitleEdgeInsets:UIEdgeInsetsMake(45*KWidth_Scale, -40*KWidth_Scale, 5*KWidth_Scale, 0)];
[button setTitleEdgeInsets:UIEdgeInsetsMake(45*KWidth_Scale, -90*KWidth_Scale, 5*KWidth_Scale, 0)];
button.tag = 331+i;
[button addTarget:self action:@selector(shareBtnClick:) forControlEvents:UIControlEventTouchUpInside];
[shareView addSubview:button];
UIButton *cancleBtn = [[UIButton alloc] initWithFrame:CGRectMake((shareView.width-40*KWidth_Scale)/2.0f, shareView.height-40*KWidth_Scale-18*KWidth_Scale, 40*KWidth_Scale, 40*KWidth_Scale)];
[cancleBtn setBackgroundImage:[UIImage imageNamed:@&IOS-取消@2x.png&] forState:UIControlStateNormal];
cancleBtn.tag = 339;
[cancleBtn addTarget:self action:@selector(shareBtnClick:) forControlEvents:UIControlEventTouchUpInside];
[shareView addSubview:cancleBtn];
//为了弹窗不那么生硬,这里加了个简单的动画
shareView.transform = CGAffineTransformMakeScale(1/300.0f, 1/270.0f);
blackView.alpha = 0;
[UIView animateWithDuration:0.35f animations:^{
shareView.transform = CGAffineTransformMakeScale(1, 1);
blackView.alpha = 1;
} completion:^(BOOL finished) {
+(void)shareBtnClick:(UIButton *)btn
NSLog(@&%@&,[ShareSDK version]);
UIWindow *window = [UIApplication sharedApplication].keyW
UIView *blackView = [window viewWithTag:440];
UIView *shareView = [window viewWithTag:441];
//为了弹窗不那么生硬,这里加了个简单的动画
shareView.transform = CGAffineTransformMakeScale(1, 1);
[UIView animateWithDuration:0.35f animations:^{
shareView.transform = CGAffineTransformMakeScale(1/300.0f, 1/270.0f);
blackView.alpha = 0;
} completion:^(BOOL finished) {
[shareView removeFromSuperview];
[blackView removeFromSuperview];
int shareType = 0;
id publishContent = _publishC
switch (btn.tag) {
shareType = ShareTypeWeixiS
shareType = ShareTypeWeixiT
shareType = ShareTypeQQ;
shareType = ShareTypeQQS
shareType = ShareTypeWeixiF
shareType = ShareTypeSinaW
shareType = ShareTypeDouB
shareType = ShareTypeSMS;
调用shareSDK的无UI分享类型,
链接地址:/forum.php?mod=viewthread&tid=110&extra=page%3D1%26filter%3Dtypeid%26typeid%3D34
[ShareSDK showShareViewWithType:shareType container:nil content:publishContent statusBarTips:YES authOptions:nil shareOptions:nil result:^(ShareType type, SSResponseState state, id statusInfo, id error, BOOL end) {
if (state == SSResponseStateSuccess)
NSLog(NSLocalizedString(@&TEXT_ShARE_SUC&, @&分享成功&));
else if (state == SSResponseStateFail)
UIAlertView * alert = [[UIAlertView alloc]initWithTitle:@&& message:@&未检测到客户端 分享失败& delegate:self cancelButtonTitle:@&确定& otherButtonTitles:nil, nil];
[alert show];
NSLog(NSLocalizedString(@&TEXT_ShARE_FAI&, @&分享失败,错误码:%d,错误描述:%@&), [error errorCode], [error errorDescription]);
为了方便快速移植,我这里贴一段构建分享内容的代码
//构造分享内容
id publishContent = [ShareSDK content:str1
defaultContent:str1
title:@& &
url:urlString
description:str1
mediaType:SSPublishContentMediaTypeText];
//调用自定义分享
[ShareCustom shareWithContent:publishContent];}

我要回帖

更多关于 后厨打印机怎么连接 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信