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

为什么做织梦网站时图片出不来开通微信公众号流程需要什么

为什么做织梦网站时图片出不来,开通微信公众号流程需要什么,太原自学网站建设,oppo应用市场iOS设计模式 - 迭代器 原理图 说明 提供一种方法顺序访问一个聚合对象中的各种元素#xff0c;而又不暴露该对象的内部表示。 源码 https://github.com/YouXianMing/iOS-Design-Patterns // // Node.h // IteratorPattern // // Created by YouXianMing on 15/10/26. // … iOS设计模式 - 迭代器   原理图    说明 提供一种方法顺序访问一个聚合对象中的各种元素而又不暴露该对象的内部表示。    源码 https://github.com/YouXianMing/iOS-Design-Patterns // // Node.h // IteratorPattern // // Created by YouXianMing on 15/10/26. // Copyright © 2015年 YouXianMing. All rights reserved. //#import Foundation/Foundation.hinterface Node : NSObject/*** 下一个节点*/ property (nonatomic, strong) Node *nextNode;/*** 节点里面的内容*/ property (nonatomic, strong) id item;/*** 初始化节点** param item 节点携带的内容** return 节点*/ - (instancetype)initWithItem:(id)item;end // // Node.m // IteratorPattern // // Created by YouXianMing on 15/10/26. // Copyright © 2015年 YouXianMing. All rights reserved. //#import Node.himplementation Node- (instancetype)initWithItem:(id)item {self [super init];if (self) {self.item item;}return self; }end // // LinkedList.h // IteratorPattern // // Created by YouXianMing on 15/10/26. // Copyright © 2015年 YouXianMing. All rights reserved. //#import Foundation/Foundation.h #import Node.h#import IteratorProtocol.h #import LinkedListIterator.hinterface LinkedList : NSObject/*** 头结点*/ property (nonatomic, strong, readonly) Node *headNode;/*** 节点的数目*/ property (nonatomic, assign, readonly) NSInteger numberOfNodes;/*** 添加数据** param item 数据*/ - (void)addItem:(id)item;/*** 创建迭代器对象** return 迭代器对象*/ - (id IteratorProtocol)createIterator;end // // LinkedList.m // IteratorPattern // // Created by YouXianMing on 15/10/26. // Copyright © 2015年 YouXianMing. All rights reserved. //#import LinkedList.hinterface LinkedList ()/*** 头结点*/ property (nonatomic, strong, readwrite) Node *headNode;/*** 节点的数量*/ property (nonatomic, assign, readwrite) NSInteger numberOfNodes;endimplementation LinkedList- (void)addItem:(id)item {if (self.headNode nil) {self.headNode [[Node alloc] initWithItem:item];} else {[self addItem:item node:self.headNode];}self.numberOfNodes; }- (id IteratorProtocol)createIterator {return [[LinkedListIterator alloc] initWithLinkedList:self]; }#pragma mark - Private Methods - (void)addItem:(id)item node:(Node *)node {if (node.nextNode nil) {node.nextNode [[Node alloc] initWithItem:item];} else {[self addItem:item node:node.nextNode];} }end // // LinkedListIterator.h // IteratorPattern // // Created by YouXianMing on 15/10/26. // Copyright © 2015年 YouXianMing. All rights reserved. //#import Foundation/Foundation.h #import IteratorProtocol.h class LinkedList;interface LinkedListIterator : NSObject IteratorProtocol/*** 由链表进行初始化** param linkedList 链表对象** return 迭代器工具*/ - (id)initWithLinkedList:(LinkedList *)linkedList;end // // LinkedListIterator.m // IteratorPattern // // Created by YouXianMing on 15/10/26. // Copyright © 2015年 YouXianMing. All rights reserved. //#import LinkedListIterator.h #import LinkedList.hinterface LinkedListIterator ()property (nonatomic, weak) LinkedList *linkedList; property (nonatomic, weak) Node *currentNode;endimplementation LinkedListIterator- (id)initWithLinkedList:(LinkedList *)linkedList {if (self [super init]) {self.linkedList linkedList;self.currentNode linkedList.headNode;}return self; }- (id)next {id item self.currentNode.item;self.currentNode self.currentNode.nextNode;return item; }- (BOOL)hasNext {if (self.currentNode nil) {return NO;} else {return YES;} }- (id)item {return self.currentNode.item; }end // // IteratorProtocol.h // IteratorPattern // // Created by YouXianMing on 15/10/26. // Copyright © 2015年 YouXianMing. All rights reserved. //#import Foundation/Foundation.hprotocol IteratorProtocol NSObject/*** 下一个对象** return 对象*/ - (id)next;/*** 是否存在下一个对象** return 对象*/ - (BOOL)hasNext;/*** 内容** return 返回内容*/ - (id)item;end // // ViewController.m // IteratorPattern // // Created by YouXianMing on 15/10/26. // Copyright © 2015年 YouXianMing. All rights reserved. //#import ViewController.h#import LinkedList.h #import LinkedListIterator.hinterface ViewController ()property (nonatomic, strong) LinkedList *linkedList;endimplementation ViewController- (void)viewDidLoad {[super viewDidLoad];// 创建链表结构self.linkedList [[LinkedList alloc] init];// 添加链表元素[self.linkedList addItem:1];[self.linkedList addItem:2];[self.linkedList addItem:3];[self.linkedList addItem:4];[self.linkedList addItem:5];// 创建迭代器id IteratorProtocol iterator [self.linkedList createIterator];// 进行元素迭代while ([iterator hasNext]) {NSLog(%, iterator.item);[iterator next];} }end   细节 转载于:https://www.cnblogs.com/YouXianMing/p/4911148.html
http://www.sadfv.cn/news/235690/

相关文章:

  • 网站建设开发公司报价长沙旅游文案
  • wordpress 商场模板辽宁好的百度seo公司
  • 小新pro更改网站设置佰牛深圳网站建设
  • 网站设计与开发专家wordpress 推广 插件
  • 网站建设方案文库网络推广业务员是干什么的
  • 深圳网站优化公司哪家好品牌建设让
  • 域名购买后网站搭建艾辰做网站
  • 自己可以建个免费网站吗seo咨询邵阳
  • wordpress网站注册不了logo创意设计
  • 百度网做网站吗广告设计网址
  • 做网站找哪家好?聚禄鼎科技是一家给企业做网站的公司永久免费云linux服务器网页
  • 手机网站建设技术方案书百度地图手机网页版
  • 天河做网站服务什么做网站赚钱
  • 网站单页生成器导航网站怎么建
  • 越城区建设和交通运输局网站免费建站微信
  • 医院网站备案流程网络工程师证
  • 网站改成html5备案ip 查询网站
  • 个人网站开发总结文档html网页作业
  • 网站模板html整站济南协会网站设计团队
  • 网站网站制作费用江门市住房和城乡建设局门户网站
  • 美食介绍网站建设论文湛江网站开发
  • 企业网站建设的重要性及意义正能量网站
  • 万网域名注册网站企业基本信息查询系统
  • 网站后台任务dw旅游网站设计教程
  • 公司注册网站怎么做专业制作网站用哪些软件
  • 杭州电商网站建设公司孙俪做的网站广告
  • 城乡建设网站网站长期建设 运营计划
  • 画册设计网站推荐互联网应用开发与设计
  • 郑州移动端网站建设线下推广是做什么的
  • 邢台网站网页设计图书馆第一代网站建设