文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > nsbundle

nsbundle

  • IOS开发教程nsbundle简介

    ...OS开发中,bundle是一个目录,其中包含了程序会使用到的资源.这些资源包含了如图像,声音,编译好的代码,nib文件(用户也会把bundle称为plug-in).对应bundle,cocoa提供了类NSBundle.我们现在用bundle获取程序里的一张图片,并显示到View上。新建一个Single View Application,并在加入viewDidLoad方法里加入如下代码: 1. // 通过使...

  • iphone开发之nsbundle_Class

    NSBundleClassReferenceDataManagement:FileManagement2010-04-29

  • Ios开发笔记

    ...t();UIGraphicsEndImageContext(); [myImageview setImage:image1];//[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"step3" ofType:@"png" inDirectory:@"Exam/sysi...

  • IOS读取文件

    IOS读取文件 //设置读取文件路径NSBundle *bundle=[NSBundlemainBundle];NSString *plistPath=[bundle pathForResource:@"Data"ofType:@&...

  • 播放系统声音

    ... view plaincopyprint?1. //———————————————————播放提示声音———————————————————————2. NSString *filePath = [[NSBundle mainBundle] pathForResource:@"msgcome"ofType:@"wav"];3. NSURL *url = [NSURL fil...

  • ios 屏幕旋转和适配

    ...entedControl *_segmentControl;CGRect _rect;} - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];if (self) {// Cu...

  • iPhone 学习笔记

    ...ViewController = [[RootViewController alloc]initWithNibName:@"RootViewController" bundle:[NSBundle mainBundle]];[window addSubview:rootViewController.view]; 这个是动态创建了RootView,上一个是利用XIB文件创建.更新方法:TNND,...

  • 好程序员-ios开发小知识点(二)

    ...tor(stopURLFetchWithProgress:)forControlEvents:UIControlEventTouchUpInside];NSString*tempFile = [[[[NSBundle mainBundle]bundlePath]stringByDeletingLastPathComponent]stringByAppendingPathComponent:@"Memex...

  • 羊皮袄3G学院iOS课程介绍

    ...…in) 3、 日期与时间(NSDate)、 日期格式(NSDataFormatter)、 日历 (NSCalendar)、定时器(NSTimer) 4、文件管理(NSFileManager)、沙盒(NSBundle)、缓冲 区(NSData) iPhone的基础框架(Foundation), 包含了iOS 开发的基本数据类型以及 常用类,在iOS SDK中以NS开头的类 都属于这个框架, 重点掌握这些常用类的常...

  • UIScrolleTabBar

    ... withColor:(UIColor *)color withTextColor:(UIColor *)textColor { NSString *imageBundlePath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"images.bundle"]; NSBundle *i...

  • xml解析

    对xml进行解析需要使用NSXMLParser类,首先声明一个NSXMLParser对象 NSXMLParser *xmlRead; NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"xml"]; NSFileHandle *file = [NSFi...

    最近文档搜索:

      站点地图 | 文档上传 | 侵权投诉 | 手机版
      本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
      文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email