Sportica   Sportica
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 26 下一页
摘要: NSString *path=@"/usr/local"; NSFileManager *myFileManager=[NSFileManager defaultManager]; NSDirectoryEnumerator *myDirectoryEnumerator; NSArray *directoryContents; myDirectoryEnumerator=[myFileManager enumeratorAtPath:path]; //列举目录内容 NSLog(@"用enumerator... 阅读全文
posted @ 2012-07-03 10:29 qingjoin 阅读(1220) 评论(0) 推荐(0)
摘要: // Do any additional setup after loading the view from its nib. NSLog(@"image vei"); UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0,45.0,300,300)]; imageView.image = [UIImage imageNamed:@"testimg.png"];//加载入图片[self.view addSubview:imageView];[imageView 阅读全文
posted @ 2012-07-02 16:07 qingjoin 阅读(1062) 评论(0) 推荐(0)
摘要: NSMutableDictionary *d = [NSMutableDictionary dictionary]; [d setObject:@"qingjoin" forKey:@"serveraddr"]; [d setObject:@"pwdpwd" forKey:@"userpwd"]; NSLog(@"%@",d); //新建一个对象。 id ontest = [d objectForKey:@"serveraddr"]; id sectest = [d obje 阅读全文
posted @ 2012-06-29 18:00 qingjoin 阅读(241) 评论(0) 推荐(0)
摘要: //button 类的控制。取出当前button 显示的值NSString *server_addvarle = [sender titleForState:UIControlStateNormal]; NSLog(@"%@",server_addvarle); 阅读全文
posted @ 2012-06-29 16:02 qingjoin 阅读(203) 评论(0) 推荐(0)
摘要: //.h文件#import <Foundation/Foundation.h>@interface Fraction : NSObject //定义一个新的类,里面有两个成员{ int numberator; int denominator;}-(void) print; //定义打印输出-(void) test_number;-(void) setNumberator:(int)n;-(void) setDenominator:(int)b;@end//.m文件中,具体实施#import "testone.h"@implementation Frac... 阅读全文
posted @ 2012-06-28 16:13 qingjoin 阅读(354) 评论(0) 推荐(0)
摘要: -(void)redfile{ FILE *fp=fopen([[self bundlePath:@"information.txt"]UTF8String], "r"); char word[100]; if (!fp) { return; } while(fgets(word, 100,fp)) { word[strlen(word)-1] = '\0'; NSLog(@"%s",word); } fclose(fp);}//读取同目录下文件路jin-(NSString *)b... 阅读全文
posted @ 2012-06-28 13:49 qingjoin 阅读(602) 评论(0) 推荐(0)
摘要: //.h 文件#import <UIKit/UIKit.h>@interface ViewController : UIViewController<UITextFieldDelegate> // type 选择outlet 然后在后面加上。<UITextFieldDelegate>@property (retain, nonatomic) IBOutlet UITextField *TXF; //.c文件 中。#import "ViewController.h"@interface ViewController ()@end@imple 阅读全文
posted @ 2012-06-28 10:47 qingjoin 阅读(297) 评论(0) 推荐(0)
摘要: - (IBAction)reslut_value:(id)sender{ /*分别表示年、月、日、时、分、秒*/ NSInteger unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSWeekCalendarUnit | NSHourCalendarUnit| NSMinuteCalendarUnit | NSSecondCalendarUnit; //******************** NSDate *dat... 阅读全文
posted @ 2012-06-27 16:13 qingjoin 阅读(491) 评论(0) 推荐(0)
摘要: // test.h 中的头文件#import <UIKit/UIKit.h>@interface test : UIViewController-(void)temp:(int)value1 :(int) value2;@end/******************************/// test.m文件 用来写一个方法#import "test.h"@interface test ()@end@implementation test-(void)temp:(int)value1 :(int) value2{ int temp; if(value1< 阅读全文
posted @ 2012-06-26 15:59 qingjoin 阅读(292) 评论(0) 推荐(0)
摘要: 1。关键字颜色无效解决办法: 高级——配置——编辑器显示——语法高亮—— 找到词语列表的完整路经看下最后的wordfile这个文件wordfile.txt是不是点txt结尾,如果是uew那么改过来就可以了。2。英文内容显示模糊解决办法: 在桌面空白处右击:属性——外观——效果——把清晰改为标准就妥妥的解决了(使用下面方式使屏幕字体的边缘平滑。找到这个)。 阅读全文
posted @ 2012-05-30 22:27 qingjoin 阅读(2694) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 26 下一页
  Sportica