VB编程技巧推荐 1、zyl910的专栏——理论水平高 用VB写高效的图像处理程序 V2.0 优化分支代码——避免跳转指令堵塞流水线 2、Laviewpbt的专栏 —— 有很多算法的代码,实用性高 神经网络学习笔记3:BP神经网络的实现及其应用 神经网络学习笔记1:感知机和线性神经网络的...
分类:
其他好文 时间:
2014-07-09 18:01:57
阅读次数:
210
#import "MainViewController.h"
@interface MainViewController ()
@end
@implementation MainViewController
- (void)viewDidLoad
{
[super viewDidLoad];
//下载文件
[self download];
}
-(void)dow...
分类:
移动开发 时间:
2014-07-04 07:36:55
阅读次数:
347
使用原生态的api上传文件的实现:
#import "MainViewController.h"
@interface MainViewController ()
@property (weak, nonatomic) UIImageView *imageView;
@end
@implementation MainViewController
- (void)viewDidLoad
{...
分类:
移动开发 时间:
2014-07-03 17:11:43
阅读次数:
279
IOS提供了叫做MPMoviePlayerController MPMoviePlayerViewController两个类,可以轻松用来实现视频播放。MPMoviePlayerViewController只能全屏播放视频。
#import "MainViewController.h"
#import
@interface MainViewController ()
//视频播放器
@pr...
分类:
移动开发 时间:
2014-07-03 16:39:10
阅读次数:
195
#pragma mark 加载xml
- (void)loadXML
{
//获取网络数据。
NSLog(@"load xml");
//从web服务器加载数据
NSString *str = @"http://www.baidu.com?format=xml"; //这里是乱写的
//1简历NSURL
NSURL *url = [NSURL UR...
分类:
移动开发 时间:
2014-07-02 16:41:26
阅读次数:
361
用NSXMLParser解析XML文件过程:
1 创建NSXMLParser实例,并传入从服务器接收XML数据。
2 定义解析器代理
3 解析器解析。
4 通过解析代理方法完成XML数据的解析。
#pragma mark 加载xml
- (void)loadXML
{
//获取网络数据。
NSLog(@"load xml");
//从web服务器加载...
分类:
移动开发 时间:
2014-07-02 07:20:04
阅读次数:
228
#import "MainViewController.h"
#import "Video.h"
#define kBaseURL @"http://192.168.3.252/~apple"
@interface MainViewController ()
@property (strong, nonatomic) NSArray *dataList;
@property (weak, no...
分类:
移动开发 时间:
2014-07-01 11:32:17
阅读次数:
238
JSON正逐步取代XML,成为网络数据的通用格式。
从ios5开始,使用NSJSONSerialization对JSON解析。还有第三方库,比如SBJson, JSONKit, TouchJson等。从性能上说,NSJSONSerizlization最好,JSONKit其次,SBJson使用较为广泛。
加载json文件:
#pragma mark 加载json
- (void)loa...
分类:
移动开发 时间:
2014-07-01 08:00:29
阅读次数:
214
#pragma mark - 这是私有方法,尽量不要再方法中直接使用属性,因为一般来说属性都是和界面关联的,我们可以通过参数的方式来使用属性
#pragma mark post登录方法
-(void)loginWithPostWithName:(NSString *)userName pwd:(NSString *)pwd
{
//1确定地址NSURL
NSString *url...
分类:
移动开发 时间:
2014-06-28 06:55:39
阅读次数:
261
UIWebView是IOS内置的浏览器,可以浏览网页,打开文档 html/htm pdf docx txt等格式的文件。 safari浏览器就是通过UIWebView做的。
服务器将MIME的标识符等放入传送的数据中告诉浏览器使用那种插件读取相关文件。
uiwebview加载各种本地文件(通过loadData方法):
- (void)viewDidLoad
{
[...
分类:
移动开发 时间:
2014-06-28 06:55:03
阅读次数:
404