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

nsbundle mainbundle

  • IOS开发教程NSBundle简介

    ...ication,并在加入viewDidLoad方法里加入如下代码: 1. // 通过使用下面的方法得到程序的main bundle2. NSBundle *mainBundle = [NSBundle mainBundle];3.4. NSString *imagePath = [mainBundlepathForResource:@"QQ20120616-1" ofType:@"...

  • iphone开发之NSBundle_Class

    NSBundleClassReferenceDataManagement:FileManagement2010-04-29

  • Ios开发笔记

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

  • 播放系统声音

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

  • iPhone 学习笔记

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

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

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

  • IOS读取文件

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

  • ios 屏幕旋转和适配

    // BMPViewController.m// MyBitmapData//// Created by IMac_06 on 14-1-6.// Copyright (c) 2014年 IMac_06. All rights reserved. // #import "BMPViewController.h"#import "ColorMatrixValue...

  • 获取应用程序信息

    如果我们需要实现应用程序版本的自动更新提示,那么我们需要获取当前运行程序的版本信息和appstore里发布的最新版本信息。当前运行程序的版本信息,可以在mainBundle里面获取: NSDictionary *infoDict = [[NSBundlemainBundle]infoDictionary];NSString *currentVersion = [infoDictobjectForK...

  • xml解析

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

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

    羊皮袄3G学院课程内容第一阶段预备 1、Mac OS X 操作的基础知识 2. 文件管理器Finder 3、iWork使用Keynote,Pages, Numbers 4. 网络设置和文件共享 Mac OS X的使用,iWork的使用,网络和文件共享第二阶段iPhone开发基础 1、iPhone开发的系统环境介绍、Xcode集成开发环境详 解、快捷方式 2、数据类型、常量和变量、运算符、赋值语句和...

    最近文档搜索:

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