子曾经曰过

  博客园  :: 首页  ::  ::  ::  :: 管理

文章分类 -  iphone开发

摘要:http://developer.apple.com/library/ios/samplecode/Birthdays/Birthdays.ziphttp://developer.apple.com/library/ios/samplecode/ClockControlPalette/ClockControlPalette.ziphttp://developer.apple.com/library/ios/samplecode/MVCNetworking/MVCNetworking.ziphttp://developer.apple.com/library/ios/samplecode/Mov 阅读全文
posted @ 2012-06-19 17:42 人的本质是什么?

摘要:.h#import <UIKit/UIKit.h>#import <MediaPlayer/MediaPlayer.h>@interface ViewController : UIViewController@property (nonatomic,strong) MPMoviePlayerController *player;- (IBAction)SelfVideo;- (IBAction)RecordVideo;- (IBAction)PlayVideo;@end.m//// ViewController.m// SysAssetVideourlToTempFil 阅读全文
posted @ 2012-06-19 17:12 人的本质是什么?

摘要:下面表格中的措施 可以用来操作 路径:措施名称描述+(NSString *)pathWithComponents:components用components创建有效的路径名称-(NSArray *)pathComponents将路径名称拆分成若干组成部分-(NSString *)lastPathComponent获取路径名称中最后一个组成部分-(NSString *)pathExtension获取路径名称中的扩展名(后缀名)-(NSString *)stringByAppendingPathComponent:path将path添加到已有的路径名称末尾-(NSString *)stringBy 阅读全文
posted @ 2012-06-15 09:54 人的本质是什么?

摘要:1.自动缩放到指定大小+ (UIImage *)thumbnailWithImage:(UIImage *)image size:(CGSize)asize{UIImage *newimage;if (nil == image) {newimage = nil;}else{UIGraphicsBeginImageContext(asize);[image drawInRect:CGRectMake(0, 0, asize.width, asize.height)];newimage = UIGraphicsGetImageFromCurrentImageContext();UIGraphics 阅读全文
posted @ 2012-06-15 09:52 人的本质是什么?

摘要:待定 阅读全文
posted @ 2012-06-12 18:21 人的本质是什么?

摘要:待续 阅读全文
posted @ 2012-06-12 18:20 人的本质是什么?

摘要:文件列表ReadImageAppDelegate.hReadImageAppDelegate.mReadImageViewController.hReadImageViewController.mReadImageViewController.xib--------------------------------------ReadImageAppDelegate.h#import <UIKit/UIKit.h>@class ReadImageViewController;@interface ReadImageAppDelegate : NSObject <UIApplic 阅读全文
posted @ 2012-06-12 17:05 人的本质是什么?

摘要:http://blog.csdn.net/banyingli/article/details/6124995根据文件名来获取文件路径(Document目录下)//根据文件名来获取文件路径-(NSString*)dataFilePath:(NSString*)sender{NSArray*path=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);NSString*documentDirectory=[pathobjectAtIndex:0];return[documentDirectory 阅读全文
posted @ 2012-06-12 15:35 人的本质是什么?

摘要:1:正常建立工程2:新建一个objective-C类,命名(可以随便)RootViewController,可带可不带xib文件3:appdelegate.h#import <UIKit/UIKit.h>@class RootViewController;@interface AppDelegate : UIResponder <UIApplicationDelegate>@property (strong, nonatomic) UIWindow *window;@property (strong, nonatomic) RootViewController *roo 阅读全文
posted @ 2012-06-12 15:15 人的本质是什么?

摘要:待定http://blog.csdn.net/shijiucdy/article/details/7404079#import <AssetsLibrary/AssetsLibrary.h>-(void)getImgs{ dispatch_async(dispatch_get_main_queue(), ^{ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; ALAssetsLibraryAccessFailureBlock failureblock ... 阅读全文
posted @ 2012-06-10 22:55 人的本质是什么?

摘要:.h#import <UIKit/UIKit.h>#import "MBProgressHUD.h"@interface ViewController : UIViewController<MBProgressHUDDelegate>{ MBProgressHUD *HUD;}-(IBAction)showWithLable:(id)sender;-(void)myTask;@end.m//// ViewController.m// MBprogressbarTest//// Created by jstv.com jstv on 12-6-10./ 阅读全文
posted @ 2012-06-10 22:11 人的本质是什么?

摘要:http://www.cnblogs.com/iphone520/archive/2011/10/27/2226548.html 手势http://www.cnblogs.com/iphone520/archive/2012/01/09/2225160.html开发常用代码 阅读全文
posted @ 2012-06-10 20:28 人的本质是什么?

摘要:@synthesize db;@synthesize dbName;-(void)openAndCreate{ NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentDirectory = [paths objectAtIndex:0]; NSString *dbPath = [documentDirectory stringByAppendingPathComponent:@"test.db"]; 阅读全文
posted @ 2012-06-06 23:47 人的本质是什么?

摘要:-(UIImage *) getImageFromURL:(NSString *)fileURL { NSLog(@"执行图片下载函数"); UIImage * result; NSData * data = [NSData dataWithContentsOfURL:[NSURL URLWithString:fileURL]]; result = [UIImage imageWithData:data]; return result;}-(void) saveImage:(UIImage *)image withFileName:(NSStrin... 阅读全文
posted @ 2012-06-06 17:35 人的本质是什么?

摘要:<Application_Home>/AppName.app:存放应用程序自身<Application_Home>/Documents/:存放用户文档和应用数据文件<Application_Home>/Library/:应用程序规范的顶级目录,下面有一些规范定义的的子目录,当然也可以自定义子目录,用于存放应用的文件,但是不宜存放用户数据文件<Application_Home>/Library/Preferences,这里存放程序规范要求的首选项文件<Application_Home>/Library/Caches,保存应用的持久化数据 阅读全文
posted @ 2012-06-06 17:32 人的本质是什么?

摘要://创建目录 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDir = [paths objectAtIndex:0]; NSFileManager *filemanager = [NSFileManager defaultManager]; NSString *newDir = [documentsDir stringByAppendingPathComponent:@"newdir... 阅读全文
posted @ 2012-06-06 17:28 人的本质是什么?

摘要:http://www.cnblogs.com/zhuqil/archive/2011/07/30/2122019.html 阅读全文
posted @ 2012-06-06 10:23 人的本质是什么?

摘要:/*****************************************每个ios程序都有一个这样的目录DocumentsLibrarytmp****************************************//***找到app的沙箱目录**/ NSArray *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [path objectAtIndex:0]; //path数组里貌.. 阅读全文
posted @ 2012-06-06 10:22 人的本质是什么?

摘要:类库http://www.weeet.com/html/mobile/iso/20120523/23028.htmluitableview使用http://www.iphonesdkarticles.com/2009/01/uitableview-creating-simple-table-view.htmlNSDictionaryhttps://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/nsdictionary_Class/Reference/Reference.html 阅读全文
posted @ 2012-06-05 17:42 人的本质是什么?

摘要:1:h头文件里@interface ViewController : UIViewController<UITextViewDelegate>继承接口UITextViewDelegatetextviewarea.delegate = self;-(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString*)text //按return键隐藏虚拟键盘{ if ([text isEqualToString:@"\n"]) 阅读全文
posted @ 2012-06-04 17:53 人的本质是什么?