E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
iPhone开发
iPhone开发
笔记(11)用ASIFormDataRequest实现图片上传
ASIFormDataRequest是ASIHttpRequest类库的重要组成部分,最近做的毕设要实现iPhone拍照,然后将拍摄图片传到服务器端。下面是在iOS客户端使用ASIFormDataRequest以post方式进行图片上传: NSString*fileName=[[NSBundlemainBundle]pathForResource:@"test"ofType:@"jpg"
kbawyg
·
2012-05-10 10:00
.net
服务器
header
File
url
iPhone
FirstApp,
iphone开发
学习总结11,表操作(移动、删除)
nav添加左按钮:- (void)viewDidLoad{//... UIBarButtonItem *tableEditBtn = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemEdit target:self action:@selector(toggleEdit:)];
·
2012-05-10 09:00
iPhone开发
iPhone开发
--UITextView中的文字改变时触发的事件
实例化UITextVIew的类对象并将UITextView的实例对象的delegate设为self。m_contentTextField=[[[UITextViewalloc]init]autorelease]; m_contentTextField.frame=CGRectMake(0,0,320,90); m_contentTextField.backgroundColor=[UIColorw
zcl369369
·
2012-05-09 23:00
iPhone
iphone开发
:关于触屏事件的一些操作
iphoneipad开发:关于触屏事件的一些操作//轻击: //需要在你的ViewController里重写几个方法: //开始触摸的方法 -(void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event { messageLabel.text=@”TouchesBegan”; [selfupdateLabelsFromTou
likendsl
·
2012-05-09 16:00
c
iPhone
ipad
值得推荐的
iPhone开发
资源汇总(3)
developer.apple.com/library/ios/#referencelibrary/GettingStarted/RoadMapiOS/Introduction/Introduction.html
iphone
likendsl
·
2012-05-09 15:00
cocoa
Blog
iPhone
文档
值得推荐的
iPhone开发
资源汇总(2)
iPad阅读器开发http://mobile.tutsplus.com/tutorials/iphone/building-an-ipad-reader-for-war-of-the-worlds/http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-using-a-slider-to-scrub-a-pdf-reader/http://mobil
likendsl
·
2012-05-09 15:00
apple
iPhone
文档
Safari
reference
图像处理
值得推荐的
iPhone开发
资源汇总(1)
如何用Facebookgraphicapi上传视频:http://developers.facebook.com/blog/post/532/Keychain保存数据封装:https://github.com/carlbrown/PDKeychainBindingsController对焦功能的实现:http://www.clingmarks.com/?p=612自定义圆角Switch按件:htt
likendsl
·
2012-05-09 15:00
FirstApp,
iphone开发
学习总结10,归档(序列化、固化)
归档TableViewController的data。为了在Nav上添加Add按钮,为TableViewController创建UINavigationController://FirstAppAppDelegate.h@class TableViewController;@interface FirstAppAppDelegate : NSObject { TableViewControl
·
2012-05-09 14:00
iPhone开发
[
iPhone开发
之控件的使用]UIAlertView的各种属性、方法及代理的使用
[
iPhone开发
之控件的使用]UIAlertView的各种属性、方法及代理的使用 转载自:http://blog.csdn.net/banyingli/article/details
stephen830
·
2012-05-09 12:00
uialertview
[
iPhone开发
之控件的使用]UIAlertView的各种属性、方法及代理的使用
[
iPhone开发
之控件的使用]UIAlertView的各种属性、方法及代理的使用 转载自:http://blog.csdn.net/banyingli/article/details
stephen830
·
2012-05-09 12:00
uialertview
iPhone开发
中一些使用小技巧
经过
iphone开发
,我发现在开发过程中最难的就是一些嘈杂的细节,而了解一些小技巧就会达到事半功倍的效果,下面我就总结一下在
iphone开发
中的一些小技巧。
LanerGaming
·
2012-05-09 10:00
在
iPhone开发
中,全局变量的几种使用方法
在
iPhone开发
中,使用全局变量有这么几种实现方法:1、 在AppDelegate中声明并初始化全局变量 然后在需要使用该变量的地方插入如下的代码: //取得AppDelegate,在iOS
love12chen
·
2012-05-08 23:00
ios
url
iPhone
在Objective-C中何时用self.何时不用?
(非常重要的基础语法知识) 今天在看《
iPhone开发
基础教程》第七章的时候,代码比着书上的写,但是出错了。
zhiganglet
·
2012-05-08 15:00
iPhone
getter
setter
编译器
ios学习--Objective C内存管理进阶(一):
Iphone开发
内存管理的理解
这个系列打算写一些我对
Iphone开发
内存管理的理解。是建立在读者对ObjectiveC的内存管理已经有一定理解的基础上,内容将包括实践准则,autorelease原理剖析,内存泄露的调试等。
yanfangjin
·
2012-05-08 12:00
ios
c
object
iPhone
reference
objective
delegates
FirstApp,
iphone开发
学习总结9,旋转
添加Rotation文件,用类别为UITabBarController添加旋转://Rotation.h文件#import @interface UITabBarController(Rotation)- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)x;@end Rotation.m文件:#import
·
2012-05-08 09:00
iPhone开发
iPhone开发
笔记(10)用.net实现json序列化(服务器端)
服务器端可以用.net来实现,就使用最普通的web窗体.aspx即可。 1、新建项default.aspx 在default.aspx中添加以下代码 2、转到default.aspx.cs文件 在Page_Load方法中添加以下代码 Student[]students=newStudent[4]; students[0]=newStudent(); students[1]
kbawyg
·
2012-05-07 18:00
json
.net
String
服务器
iPhone
asp
iPhone开发
笔记(9)ASIHttpRequest和json-framework实现json解析(iOS客户端)
这篇日志我会写一个客户端json解析的小例子,下篇日志我会写服务器端的代码。 1、进行必要的准备工作。 下载ASIHttpRequest类库,github上有,https://github.com/pokeb/asi-http-request/ 下载json-framework,github上也有,https://github.com/stig/json-framework/ 2、将
kbawyg
·
2012-05-07 17:00
ios
json
xcode
url
iPhone
Dictionary
FirstApp,
iphone开发
学习总结8,自定义TablevViewCell
创建TableViewCell文件(继承于UITableViewCell),在.h文件中添加2个label和一个方法:@interface TableViewCell : UITableViewCell{ UILabel *nameLbl; UILabel *ageLbl;}- (void)setValue:(NSString *)name age:(NSString *)age; 创
·
2012-05-07 16:00
iPhone开发
iphone开发
内存管理
我一般喜欢在开发的最后阶段,才考虑内存管理那么就需要好的工具,帮你定位,内存泄露的位置。经过一段时间的研究,已经完美控制了内存的增长1.通过查找alloc关键字,自己找出项目中需要释放的内存2.可以通过instruments中的cpusample查看cpu和内存使用情况2.你还可以使用instruments中的leaks查看内存泄露的地方甚至还可以直接定位到代码段是处理内存泄露的利器3。如果这还不
a2657222
·
2012-05-07 16:00
iPhone
Build
工具
iphone开发
之SQLite使用详解
SQLite是一个开源的嵌入式关系数据库,它在2000年由D.RichardHipp发布,它的减少应用程序管理数据的开销,SQLite可移植性好,很容易使用,很小,高效而且可靠。SQLite嵌入到使用它的应用程序中,它们共用相同的进程空间,而不是单独的一个进程。从外部看,它并不像一个RDBMS,但在进程内部,它却是完整的,自包含的数据库引擎。嵌入式数据库的一大好处就是在你的程序内部不需要网络配置,
Shang_515
·
2012-05-05 17:00
sql
sqlite
String
user
database
iPhone
FirstApp,
iphone开发
学习总结7,相机
首先需要一个Nav,在FirstAppAppDelegate.m里添加:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ //... ImageViewController *imgTab = [[ImageViewC
·
2012-05-04 15:00
iPhone开发
FirstApp,
iphone开发
学习总结6,Navigation的使用
如图所示,实现的功能: 为了展示,我创建一个NavView文件,里面包含3个View:@interface NavView1 : UIViewController{//代表View1}@end@interface NavView2 : UIViewController {//代表View2}@end@interface NavView3 : UIViewController {//代表View3}
·
2012-05-03 23:00
iPhone开发
FirstApp,
iphone开发
学习总结5,Slider改变Label的值
在总结4的基础上创建一个Slider,添加代码如下:- (void)viewDidLoad{ //.... UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake(40.0, 200.0, 240.0, 20.0)]; slider.minimumValue = 0; slider.maximumValue
·
2012-05-03 23:00
iPhone开发
FirstApp,
iphone开发
学习总结4,UITextField的值To UILabel
需要交互,在TextFieldViewController.h中创建2个变量,并实现UITextFieldDelegate(Return):@interface TextFieldViewController : UIViewController{ UILabel *resultLbl; UITextField *textField;}@property (retain, nonato
·
2012-05-03 23:00
UITextField
FirstApp,
iphone开发
学习总结3,UIButton简单的操作
相同的,为了Tabinit:- (id)init { self = [super init]; if (self) { [self setTitle:@"按钮展示"]; UIImage *img = [UIImage imageNamed:@""]; [[self tabBarItem] setImage:img]; }
·
2012-05-03 23:00
iPhone开发
FirstApp,
iphone开发
学习总结2,简单的表
首先在TableViewController.h中,将UIViewController改成UITableViewController(委托先不写),并创建一个数组:@interface TableViewController : UITableViewController{ NSMutableArray *data;}在init方法中,我们初始化此表为分组表:- (id)init {
·
2012-05-03 22:00
iPhone开发
FirstApp,
iphone开发
学习总结0,创建TabBar
在FirstAppAppDelegate.m的添加文件引用#import "ImageViewController.h"#import "TableViewController.h"#import "ButtonViewController.h"#import "TextFieldViewController.h"#import "NavViewController.h"在-(BOOL)appli
·
2012-05-03 22:00
iPhone开发
iPhone开发
之UIActionSheet
UIActionSheet是iOS开发中实现警告框的重要的类,在很多情况下都要用到,先来一睹其芳容: 实现步骤如下:一、为了让控制器类充当操作表的委托,控制器类需要遵从UIActionSheetDelegate协议。@interfaceUIActionSheetDemoViewController:UIViewController{ }二、生成UIActionSheet并显示。UIActio
flyter
·
2012-05-03 19:00
iPhone
action
UIView
float
button
interface
IPhone开发
时把ToolBar中的元素居中的技巧
在IPhone应用开发时,经常用到ToolBar,其中的控件通常都是居左,想让它居中就有点困难。这里介绍一种方法:将FlexibleSpaceBarButtonItem从库中拖到位于控件左侧的工具栏上,然后将另一个FlexibleSpaceBarButtonItem拖到位于控件右侧的工具栏上。当我们调整该工具栏的大小时,这些项目将使分段控件位于工具栏的中心。
zhiganglet
·
2012-05-03 15:00
iPhone
工具
button
iphone开发
中的各种动画效果
iphone中存在很多好看的动画效果,用于页面的切换等。其中某些是apple私有的,据说私有的无法通过apple的审批。最近工作中刚好用到过其中的某些动画,所以在网上搜了下资料,了解了下这些动画。这里就自己的理解做一下总结,如有错误或遗漏,尽请谅解。 1、UIView动画官方API中,使用UIView可以设置5个动画效果,分别为:UIViewAnimationTransitionNone 不使
lovenjoe
·
2012-05-03 15:00
apple
cache
iPhone
animation
UIView
照片
iOS Code Signing: 解惑详解
Iphone开发
的代码签名 英文版链接:http://developer.apple.com/iphone/gettingstarted/docs/signingcodeforiphonedev.action
diyagoanyhacker
·
2012-05-03 13:00
ios
apple
xcode
测试
iPhone
Cryptography
IPhone开发
中的内存管理机制
我们在开发中会用到下面的这些相关知识:copy和retain的区别 copy:建立一个索引计数为1的对象,然后释放旧对象 retain:释放旧的对象,将旧对象的值赋予输入对象,再提高输入对象的索引计数为1 那上面的是什么该死的意思呢? Copy其实是建立了一个相同的对象,而retain不是: 比如一个NSString对象,地址为0×1111,内容为@”STR”
bailu66
·
2012-05-03 12:00
cocoa
String
iPhone
interface
reference
FirstApp,
iphone开发
学习总结1,UIview添加UIimage
作为第一个Tab,需要设置Title,在init内搞定:- (id)init { self = [super init]; if (self) { [self setTitle:@"图片展示"]; UIImage *img = [UIImage imageNamed:@""]; [[self tabBarItem] setImage:img];
·
2012-05-03 10:00
iPhone开发
FirstApp,
iphone开发
学习总结
接触
iphone开发
也有半年了,看了点东西,最近总是记不住,写一个App,总结下,尽可能的添加功能。代码也会不断完善。希望好人指点指点。
·
2012-05-03 09:00
iPhone开发
从lazyTableImages官方例子学到的一些东西
这里需要注意的是,
iphone开发
中,在主线程之外的线程更新主线程
fhbystudy
·
2012-05-02 10:00
UIView 你知道多少
曾经有人这么说过,在iphone里你看到的,摸到的,都是UIView,所以UIView在
iphone开发
里具有非常重要的作用。那么UIView我们到底知道多少呢。
x1135768777
·
2012-05-02 09:00
iphone开发
之线程的使用详解
有些时候我们需要进行处理大量数据或其他非常耗时的操作,为了不影响程序对用户的响应,我们必须将这些事情放在一个新线程里进行。这样可以与主线程(UI线程)分开,当任务完成后,在返回主线程处理。android平台下我们可以通过handler和message来实现上述功能。那么ios平台下是如何做的呢?接下我们通过一个下载网络图片的小例子进行学习。新建一个项目命名为ThreadApp。向ViewCont
Shang_515
·
2012-05-01 16:00
基于
iphone开发
点餐系统应用(附带完整源码)
参考外包网站上的一个点餐系统的部分需求写着练手,主要使用了以下知识:完整源码下载:http://115.com/file/c2uwp94j1.TabbarController与NavigationController的套用2.TableViewCell子视图添加UILabel和UIButton等3.Quartz2D绘制自定义视图4.手势结合UIViewAnimation切换视图5.CoreData
北风网
·
2012-05-01 13:00
iPhone
iPhone开发
--UITextField中的文字左对齐,垂直高度居中
textField.textAlignment=UITextAlignmentLeft;//水平左对齐 textField.contentVerticalAlignment=UIControlContentVerticalAlignmentCenter;//垂直居中运行效果如下:
zcl369369
·
2012-04-28 14:00
iPhone
为视图加边框
iPhone开发
应用为视图加边框是本文要介绍的内容,主要来介绍视图中的一个有趣的案例,实现给视图加边框的效果,不多说,直接来看详细内容讲解。通过层(layer),可以给视图增加边框和圆角等。
snn1410
·
2012-04-28 14:00
xcode
iPhone
layer
frameworks
UIView 基础
曾经有人这么说过,在iphone里你看到的,摸到的,都是UIView,所以UIView在
iphone开发
里具有非常重要的作用。那么UIView我们到底知道多少呢。
fhbystudy
·
2012-04-28 10:00
ios
框架
animation
UIView
图形
printing
iPhone开发
网站、论坛、博客
http://cocoachina.com/ 大量
iPhone开发
资料,教学,经验,还有自曝。
huifeidexin_1
·
2012-04-27 21:00
游戏
android
iPhone
文档
iphone开发
者证书装多台电脑的方法
iphone开发
者证书装多台电脑的方法保存你的私钥,转移到其它系统将你的私钥安全的保存,如果你需要在多台电脑上开发或者重装你的操作系统的。
一点一滴,编程人生
·
2012-04-27 10:00
iPhone开发
--UIButton气的我胃疼的一行代码
反复改了一个多小时,怎么改也不对,明明没有什么错误的代码,就是不能在界面上显示按钮,反复对照,最后发现是自己多写了release方法。代码如下:UIButton *bt_img_chenbao =[UIButton buttonWithType:UIButtonTypeCustom];bt_img_chenbao.frame = CGRectMake(10 + 70 *i+ 320 *k, 40
zcl369369
·
2012-04-26 21:00
iPhone开发
--之 异常
什么都不想说了,对于java程序员来说再熟悉不过了,直接上代码。@try{NSMutableArray *array=[[NSMutableArray alloc] init];[array objectAtIndex:10];[array release];}@catch(NSException *e){NSLog(@"Mygod");CFShow(e);}程序输出结果2011-08-0809:
zcl369369
·
2012-04-26 21:00
java
iPhone
深入理解
iphone开发
中的delegate
深入理解
iphone开发
中的delegate 转载自: http://blog.csdn.net/zhanglei5415/article/details/6133852  
stephen830
·
2012-04-26 17:00
iPhone开发
深入理解
iphone开发
中的delegate
深入理解
iphone开发
中的delegate 转载自: http://blog.csdn.net/zhanglei5415/article/details/6133852  
stephen830
·
2012-04-26 17:00
iPhone开发
iphone开发
之用lipo合并模拟器库和真机库,发布一个通用的静态库
lipolipo–createRelease-iphoneos/libiphone.aDebig-iphonesimulator/libiphone.a–outputlibiphone.a看到这样的命令行,你会怎样理解呢。很简单,我将模拟器和设备的静态库文件合并成一个文件输出了,以后在发布可以库的时候不用发一个模拟器版的和一个真机版的了,这样子的一个库可以在编译的时候自动识别需要连接的库。那lip
think12
·
2012-04-26 10:00
OS
iPhone
工具
平台
output
iphone开发
app icon 控件标准界面 大小,尺寸
iphone开发
appicon控件标准界面大小,尺寸1.程序图标appicon------普屏icon.png[57*57]视网膜屏
[email protected]
[114*114]
iPhone开发
中经常用到的控件尺寸大集合
一点一滴,编程人生
·
2012-04-26 09:00
对xib/nib, file's owner, first responder的理解
iPhone开发
广义上来讲,采用MVC模型,即Model-View-Controller。
xdonx
·
2012-04-26 00:00
上一页
40
41
42
43
44
45
46
47
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他