当前位置: 首页 > news >正文

孝感哪家做网站的公司好/企业营销策划实训报告

孝感哪家做网站的公司好,企业营销策划实训报告,哪个网站好,商城网站建设行业现状下载地址 https://github.com/levey/LeveyPopListView 是arc, 如果是非arc项目要设置一下 方法 选中工程->TARGETS->相应的target然后选中右侧的“Build Phases”,向下就找到“Compile Sources”了。如何在未使用arc的工程中引入一个使用了arc特性的文件:对…

 下载地址 https://github.com/levey/LeveyPopListView 是arc,  如果是非arc项目要设置一下 

方法

选中工程->TARGETS->相应的target然后选中右侧的“Build Phases”,向下就找到“Compile Sources”了。
如何在未使用arc的工程中引入一个使用了arc特性的文件:对相应的文件添加:-fobjc-arc参数

 

#import <UIKit/UIKit.h>
#import "LeveyPopListView.h"@interface MyViewController : UIViewController<LeveyPopListViewDelegate>@end

 

 

#import "MyViewController.h"

 

 

 

@interfaceMyViewController ()

 

{

 

    UILabel *lb;

 

}

 

@property(nonatomic,retain)NSArray *options;

 

 

 

@end

 

 

 

@implementation MyViewController

 

 

 

 

 

 

 

- (void)viewDidLoad

 

{

 

    [superviewDidLoad];

 

    self.view.backgroundColor=[UIColorwhiteColor];

 

    

 

    //数据源

 

   self.options = [NSArrayarrayWithObjects:

 

                [NSDictionarydictionaryWithObjectsAndKeys:[UIImageimageNamed:@"facebook.png"],@"img",@"Facebook",@"text", nil],

 

                [NSDictionarydictionaryWithObjectsAndKeys:[UIImageimageNamed:@"twitter.png"],@"img",@"Twitter",@"text", nil],

 

                [NSDictionarydictionaryWithObjectsAndKeys:[UIImageimageNamed:@"tumblr.png"],@"img",@"Tumblr",@"text", nil],

 

                [NSDictionarydictionaryWithObjectsAndKeys:[UIImageimageNamed:@"google-plus.png"],@"img",@"Google+",@"text", nil],

 

                [NSDictionarydictionaryWithObjectsAndKeys:[UIImageimageNamed:@"linkedin.png"],@"img",@"LinkedIn",@"text", nil],

 

                [NSDictionarydictionaryWithObjectsAndKeys:[UIImageimageNamed:@"pinterest.png"],@"img",@"Pinterest",@"text", nil],

 

                [NSDictionarydictionaryWithObjectsAndKeys:[UIImageimageNamed:@"dribbble.png"],@"img",@"Dribbble",@"text", nil],

 

                [NSDictionarydictionaryWithObjectsAndKeys:[UIImageimageNamed:@"deviant-art.png"],@"img",@"deviantArt",@"text", nil],

 

                nil];

 

    UIButton *btn=[UIButtonbuttonWithType:UIButtonTypeRoundedRect];

 

    btn.frame=CGRectMake(0, 0, 100, 100);

 

    

 

    lb=[[UILabelalloc] initWithFrame:CGRectMake(100, 100, 200,50)];

 

    lb.backgroundColor=[UIColorclearColor];

 

    [lbsetTextColor:[UIColorredColor]];

 

    [self.viewaddSubview:lb];

 

    [lbrelease];

 

    

 

    [btn setTitle:@"TEST"forState:UIControlStateNormal];

 

    [btn addTarget:selfaction:@selector(click) forControlEvents:UIControlEventTouchUpInside];

 

    [self.viewaddSubview:btn];

 

// Do any additional setup after loading the view.

 

}

 

 

 

-(void)click{

 

    

 

    //创建 LeveyPopListView

 

    LeveyPopListView *lv=[[LeveyPopListViewalloc] initWithTitle:@"展示"options:self.options];

 

    

 

    lv.delegate=self;

 

    

 

    [lv showInView:self.viewanimated:YES];

 

    [lv release];

 

}

 

 

 

#pragma  mark 代理方法

 

- (void)leveyPopListView:(LeveyPopListView *)popListView didSelectedIndex:(NSInteger)anIndex{

 

    NSLog(@"%zi",anIndex);

 

    NSString *key=[self.options[anIndex] allValues][1];

 

    lb.text=[NSStringstringWithFormat:@"返回数据-->%@",key];

 

}

 

- (void)leveyPopListViewDidCancel{

 

    NSLog(@"取消");

 

}

 

 

 

 

 

@end

 

 

http://www.lbrq.cn/news/1604449.html

相关文章:

  • 网站建设公司的市场定位/北京网站排名推广
  • 淘宝网络营销推广方式/长沙seo男团
  • 大连建站费用/邢台网站网页设计
  • 做网站 用什么语言好/seo网站分析
  • 只做一种产品的网站/自己做网站的流程
  • 教育网站如何做seo/台州网站制作维护
  • 怎么自己创建一个平台/网络优化工程师有前途吗
  • 中国建设招标网站首页/飞猪关键词排名优化
  • 生物科技网站建设 中企动力北京/超级seo外链
  • 选择赣州网站建设/百度推广如何代理加盟
  • wap网站程序/体球网足球世界杯
  • 做网站后台的时候要注意什么/推广网站源码
  • 网站可以在手机上做吗/广州seo网站开发
  • app开发的网站/app软件推广平台
  • 在国内做电商网站需要什么审核/宜兴百度推广
  • 网站设计的背景/重庆seo快速优化
  • 新兴网站建设/北京it培训机构哪家好
  • 承接设计网站建设/搜索引擎营销简称seo
  • 手机功能网站案例/域名注册要多少钱
  • php网站安装图解/青岛seo整站优化哪家专业
  • wordpress utf8 gbk/深圳网站seo外包公司哪家好
  • 网站右键屏蔽/西安百度推广代理商
  • web网站开发毕业论文/郑州关键词seo
  • 龙华建网站/谷歌商店下载官网
  • 常州微信网站建设/什么是百度搜索推广
  • 自贡北京网站建设/打开一个网站
  • 电商会学着做网站呢/做网站设计的公司
  • 贵州安顺做公司网站/sem技术培训
  • 在哪里找人做网站靠谱/媒体宣传推广方案
  • 自己这么做网站/怎么开发网站
  • 从物理扇区到路径访问:Linux文件抽象的全景解析
  • 第12届蓝桥杯Scratch图形化【省赛】初级组 2021年4月24日
  • openwrt 23.05编译intel igb5.19.4驱动
  • golang的包和闭包
  • Supergateway教程
  • PHP面向对象编程与数据库操作完全指南-下