请问这个是什么字体,电信大神卡是什么们帮我看下,我要准确的字体

iOS 问题:求大神们帮我看看,这段代码哪里出问题了,我要在点击button后出现下拉菜单,选择后,文字出现在button的title上 ,可是现在点击button崩溃,崩溃原因'Requesting the window of a view (&NIDropDown: 0x; frame = (0 0; 0 0); transform = [0, 0, 0, 0, 0, 0]; alpha = 0; opaque = NO; layer = (null)&) with a nil layer. This view probably hasn't received initWithFrame: or initWithCoder:.'
我是参照这个demo做的/ios/NIDropDown/50fe226e00000,我和这个demo唯一的区别就是,他是nib中添加的button,我是在故事板中。。。。从崩溃原因上看,我可能是哪里没初始化,我是超新手,不懂,求大神门仔细看看,谢谢啦,下面上代码:
#import "NIDropDown.h"
#import "QuartzCore/QuartzCore.h"
@interface NIDropDown ()
@property(nonatomic, strong) UITableView *
@property(nonatomic, strong) UIButton *btnS
@property(nonatomic, retain) NSArray *
@implementation NIDropDown
@synthesize btnS
- (id)showDropDown:(UIButton *)b:(CGFloat *)height:(NSArray *)arr {
btnSender =
if (self) {
// Initialization code
CGRect btn = b.
self.frame = CGRectMake(btn.origin.x, btn.origin.y+btn.size.height, btn.size.width, 0);
self.list = [NSArray arrayWithArray:arr];
self.layer.masksToBounds = NO;
self.layer.cornerRadius = 8;
self.layer.shadowOffset = CGSizeMake(-5, 5);
self.layer.shadowRadius = 5;
self.layer.shadowOpacity = 0.5;
table = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, btn.size.width, 0)];
table.delegate =
table.dataSource =
table.layer.cornerRadius = 5;
table.backgroundColor = [UIColor colorWithRed:0.239 green:0.239 blue:0.239 alpha:1];
table.separatorStyle = UITableViewCellSeparatorStyleSingleL
table.separatorColor = [UIColor grayColor];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
self.frame = CGRectMake(btn.origin.x, btn.origin.y+btn.size.height, btn.size.width, *height);
table.frame = CGRectMake(0, 0, btn.size.width, *height);
[UIView commitAnimations];
[b.superview addSubview:self];
[self addSubview:table];
-(void)hideDropDown:(UIButton *)b {
CGRect btn = b.
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
self.frame = CGRectMake(btn.origin.x, btn.origin.y+btn.size.height, btn.size.width, 0);
table.frame = CGRectMake(0, 0, btn.size.width, 0);
[UIView commitAnimations];
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
return 40;
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return [self.list count];
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
cell.textLabel.font = [UIFont systemFontOfSize:15];
cell.textLabel.textAlignment = UITextAlignmentC
cell.textLabel.text =[list objectAtIndex:indexPath.row];
cell.textLabel.textColor = [UIColor blackColor];
UIView * v = [[UIView alloc] init];
v.backgroundColor = [UIColor grayColor];
cell.selectedBackgroundView =
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[self hideDropDown:btnSender];
UITableViewCell *c = [tableView cellForRowAtIndexPath:indexPath];
[btnSender setTitle:c.textLabel.text forState:UIControlStateNormal];
[self myDelegate];
- (void) myDelegate {
[self.delegate niDropDownDelegateMethod:self];
#import "ViewController.h"
#import "NIDropDown.h"
#import &QuartzCore/QuartzCore.h&
@interface ViewController ()
@implementation ViewController
@synthesize btnSelect1;
- (void)viewDidLoad
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
btnSelect1.layer.borderWidth = 1;
btnSelect1.layer.borderColor = [[UIColor blackColor] CGColor];
btnSelect1.layer.cornerRadius = 5;
- (void)didReceiveMemoryWarning
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait);
- (void) niDropDownDelegateMethod: (NIDropDown *) sender {
[self rel];
-(void)rel{
dropDown1 =
- (IBAction)selectClicked1:(UIButton *)sender {
NSArray * arr = [[NSArray alloc] init];
arr = [NSArray arrayWithObjects:@"Hello 0", @"Hello 1", @"Hello 2", @"Hello 3", @"Hello 4", @"Hello 5", @"Hello 6", @"Hello 7", @"Hello 8", @"Hello 9",nil];
if(dropDown1 == nil) {
CGFloat f = 20.0;
//此处为崩溃的原因
dropDown1 = [[NIDropDown alloc]showDropDown:sender :&f :arr];
dropDown1.delegate =
[dropDown1 hideDropDown:sender];
[self rel];
求大神们帮我看看,这段代码哪里出问题了,我要在点击button后出现下拉菜单,选择后,文字出现在button的title上 ,可是现在点击button崩溃,崩溃原因'Requesting the window of a view (&NIDropDown: 0x; frame = (0 0; 0 0); transform = [0, 0, 0, 0, 0, 0]; alpha = 0; opaque = NO; layer = (null)&) with a nil layer. This view probably hasn't received initWithFrame: or initWithCoder:.'
我是参照这个demo做的,我和这个demo唯一的区别就是,他是nib中添加的button,我是在故事板中。。。。从崩溃原因上看,我可能是哪里没初始化,我是超新手,不懂,求大神门仔细看看,谢谢啦,下面上代码:
#import "NIDropDown.h"
#import "QuartzCore/QuartzCore.h"
@interface NIDropDown ()
@property(nonatomic, strong) UITableView *
@property(nonatomic, strong) UIButton *btnS
@property(nonatomic, retain) NSArray *
@implementation NIDropDown
@synthesize btnS
- (id)showDropDown:(UIButton *)b:(CGFloat *)height:(NSArray *)arr {
btnSender =
if (self) {
// Initialization code
CGRect btn = b.
self.frame = CGRectMake(btn.origin.x, btn.origin.y+btn.size.height, btn.size.width, 0);
self.list = [NSArray arrayWithArray:arr];
self.layer.masksToBounds = NO;
self.layer.cornerRadius = 8;
self.layer.shadowOffset = CGSizeMake(-5, 5);
self.layer.shadowRadius = 5;
self.layer.shadowOpacity = 0.5;
table = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, btn.size.width, 0)];
table.delegate =
table.dataSource =
table.layer.cornerRadius = 5;
table.backgroundColor = [UIColor colorWithRed:0.239 green:0.239 blue:0.239 alpha:1];
table.separatorStyle = UITableViewCellSeparatorStyleSingleL
table.separatorColor = [UIColor grayColor];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
self.frame = CGRectMake(btn.origin.x, btn.origin.y+btn.size.height, btn.size.width, *height);
table.frame = CGRectMake(0, 0, btn.size.width, *height);
[UIView commitAnimations];
[b.superview addSubview:self];
[self addSubview:table];
-(void)hideDropDown:(UIButton *)b {
CGRect btn = b.
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
self.frame = CGRectMake(btn.origin.x, btn.origin.y+btn.size.height, btn.size.width, 0);
table.frame = CGRectMake(0, 0, btn.size.width, 0);
[UIView commitAnimations];
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
return 40;
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return [self.list count];
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
cell.textLabel.font = [UIFont systemFontOfSize:15];
cell.textLabel.textAlignment = UITextAlignmentC
cell.textLabel.text =[list objectAtIndex:indexPath.row];
cell.textLabel.textColor = [UIColor blackColor];
UIView * v = [[UIView alloc] init];
v.backgroundColor = [UIColor grayColor];
cell.selectedBackgroundView =
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[self hideDropDown:btnSender];
UITableViewCell *c = [tableView cellForRowAtIndexPath:indexPath];
[btnSender setTitle:c.textLabel.text forState:UIControlStateNormal];
[self myDelegate];
- (void) myDelegate {
[self.delegate niDropDownDelegateMethod:self];
#import "ViewController.h"
#import "NIDropDown.h"
#import &QuartzCore/QuartzCore.h&
@interface ViewController ()
@implementation ViewController
@synthesize btnSelect1;
- (void)viewDidLoad
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
btnSelect1.layer.borderWidth = 1;
btnSelect1.layer.borderColor = [[UIColor blackColor] CGColor];
btnSelect1.layer.cornerRadius = 5;
- (void)didReceiveMemoryWarning
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait);
- (void) niDropDownDelegateMethod: (NIDropDown *) sender {
[self rel];
-(void)rel{
dropDown1 =
- (IBAction)selectClicked1:(UIButton *)sender {
NSArray * arr = [[NSArray alloc] init];
arr = [NSArray arrayWithObjects:@"Hello 0", @"Hello 1", @"Hello 2", @"Hello 3", @"Hello 4", @"Hello 5", @"Hello 6", @"Hello 7", @"Hello 8", @"Hello 9",nil];
if(dropDown1 == nil) {
CGFloat f = 20.0;
//此处为崩溃的原因
dropDown1 = [[NIDropDown alloc]showDropDown:sender :&f :arr];
dropDown1.delegate =
[dropDown1 hideDropDown:sender];
[self rel];
共有 1 个回答
闲着没事新建了一个工程看了下你的代码 运行正常 最好是你把工程发到一个地方可以下载看看
登录后方可回复
登录后方可回答
耗时 0.0728 秒今日论坛第 1 个签到,每日签到可得财富值+2,连续5天签到后再连续签到则每日可得财富值
+4,记得每天都来签到哦~
上一主题:
下一主题:
查看: 774 | 回复: 16
大神们,帮我看看这个图中是什么字体
财富值 317
交易信用 0
原创小红花 0
积分/帖子:262
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
来自:江西鹰潭
状态: 离线
大神们,帮我看看这个图中是什么字体
万分感谢,标题党图片出来有点慢
(83.75 KB)
没有猩猩的夜里!我用猴子吸引你
财富值 317
交易信用 0
原创小红花 0
积分/帖子:262
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
来自:江西鹰潭
状态: 离线
没人帮忙吗
没有猩猩的夜里!我用猴子吸引你
财富值 2322
交易信用 0
原创小红花 0
曾经的懒杨杨ZERO
积分/帖子:2408
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
诺基亚5530XM→三星s5830→小米
来自:江苏常州
状态: 离线
还要等图……
我们的低调是为了舞舞区的繁荣!
财富值 317
交易信用 0
原创小红花 0
积分/帖子:262
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
来自:江西鹰潭
状态: 离线
回复 #3 霜满悠悠 的帖子
没有猩猩的夜里!我用猴子吸引你
财富值 2199
交易信用 0
原创小红花 0
ˇ改_无限灌水中
积分/帖子:2089
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
状态: 离线
难道是少&&女字体..
不想再折腾了,心力憔悴...
弱水三千,只取一瓢饮
DIY伤不起啊,特么的真的伤不起...特么的...
【ˇ改_】共享一些资源,DIY素材,软件,玩机工具
/thread--285-7.html
screen.width*0.7) {this.resized= this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized= this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" />
财富值 2322
交易信用 0
原创小红花 0
曾经的懒杨杨ZERO
积分/帖子:2408
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
诺基亚5530XM→三星s5830→小米
来自:江苏常州
状态: 离线
少女字体……
我们的低调是为了舞舞区的繁荣!
财富值 317
交易信用 0
原创小红花 0
积分/帖子:262
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
来自:江西鹰潭
状态: 离线
好的,谢谢楼上的各位
没有猩猩的夜里!我用猴子吸引你
财富值 1446
交易信用 0
原创小红花 0
积分/帖子:2208
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
状态: 离线
这像少女字体 怎么觉得不像
我们的低调只为舞舞区的繁荣逝去的岁月,怎么找得回来?你曾经的微笑,在回忆里却散不开。
进驻修仙区
修仙区―闭眼[/url]
交易信用 0
原创小红花 0
积分/帖子:160
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
状态: 离线
财富值 1372
交易信用 0
原创小红花 0
积分/帖子:1264
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
状态: 离线
少女体或娃娃体
screen.width*0.7) {this.resized= this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized= this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" />
财富值 1504
交易信用 0
原创小红花 0
异潮、尘封
积分/帖子:1421
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
来自:镇江
状态: 离线
*** 作者被禁止或删除 内容自动屏蔽 ***
UID 3237091
财富值 310
交易信用 0
原创小红花 0
积分/帖子:285
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
状态: 离线
方正卡通吧
财富值 1955
交易信用 0
原创小红花 0
积分/帖子:2067
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
来自:广东江门
状态: 离线
不辞而别已成习惯!!
screen.width*0.7) {this.resized= this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized= this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" />
财富值 2822
交易信用 0
原创小红花 0
积分/帖子:4307
连续签到天数:1
全部签到天数:1
注册时间:
手机型号:
n72 5530 9
来自:地球
状态:在线
我觉得像方正卡通
 ┏┓   ┏┓
┏┛┻━━━┛┻┓
┃       ┃
┃   ━   ┃
┃ ┳┛ ┗┳ ┃
┃       ┃
┃      ┃
┃       ┃
┗━┓   ┏━┛
  ┃   ┃
  ┃   ┃
  ┃   ┗━━━┓
  ┃       ┣┓
  ┃       ┏┛
  ┗┓┓┏━┳┓┏┛& &
   ┃┫┫ ┃┫┫& && &
   ┗┻┛ ┗┻┛& && &
交易信用 0
原创小红花 0
积分/帖子:7
连续签到天数:0
全部签到天数:0
注册时间:
手机型号:
来自:广东
状态: 离线
少女字体吧..
微信扫一扫关注dospy有会做图的大神么 帮我看下这是什么字体 急_百度知道
有会做图的大神么 帮我看下这是什么字体 急
//h.com/zhidao/pic//zhidao/wh%3D600%2C800/sign=c4af736d8ab/fc1fe4ad8d1add2c8a786c8175cea.hiphotos://h.jpg" esrc="http.baidu.baidu.baidu.jpg" target="_blank" title="点击查看大图" class="ikqb_img_alink"><img class="ikqb_img" src="/zhidao/wh%3D450%2C600/sign=16f64e32b019ebc4c02d7e9db716e3ca/fc1fe4ad8d1add2c8a786c8175cea有会做图的大神么 帮我看下这是什么字体 急<img class="ikqb_img" src="/zhidao/wh%3D600%2C800/sign=a3a0de1ad/50da81cb39dbb6fdd9fe9d710a24abb://d.jpg" esrc="/zhidao/pic/item/50da81cb39dbb6fdd9fe9d710a24abb.baidu.hiphotos://d://d<a href="/zhidao/wh%3D450%2C600/sign=ca7bfe14eef/50da81cb39dbb6fdd9fe9d710a24abb
提问者评价
太给力了,你的回答完美地解决了我的问题,非常感谢!
其他类似问题
为您推荐:
字体的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁}

我要回帖

更多关于 大神是什么牌子 的文章

更多推荐

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

点击添加站长微信