- 浏览: 99241 次
- 性别:
- 来自: 上海
最新评论
-
softlanh:
如果我用第一种方法截取一个不规则图形,截取后只保留需要的截取后 ...
iOS 画出不规则图形 -
netkiller.github.com:
世上竟有Obj-C 这么变态的语言, []的使用都快赶上 pe ...
获取iphone键盘所在view -
374016526:
此功能建议大家不要使用,如果要显示网页的东西还是自定义或UIW ...
UITextView显示HTML内容,实现显示不同的字体和文字颜色 -
qichunren:
在哪里在哪里、
iPhone闹钟
文章列表
隐藏UIScrollView的滚动条
- 博客分类:
- iphone
scrollView.showsVerticalScrollIndicator = FALSE;
scrollView.showsHorizontalScrollIndicator = FALSE;
iPhone NSLog输出格式
- 博客分类:
- iphone
%@ Object
%d, %i signed int
%u unsigned int
%f float/double
%x, %X hexadecimal int
%o octal int
%zu size_t
%p pointer
%e float/double (in scientific notation)
%g float/double (as %f or %e, depending on value)
%s C string (bytes)
%S C string (unichar)
%.*s Pascal string (requires two arg ...
//
// TestBedViewControler_006.m
// UIViewAnimationsTest
//
// Created by mir on 11-4-1.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "TestBedViewControler_006.h"
#import "UIView-ModalAnimationHelper.h"
@implementation TestBedVi ...
//
// TestBedViewControler_005.m
// UIViewAnimationsTest
//
// Created by mir on 11-4-1.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "TestBedViewControler_005.h"
@implementation TestBedViewControler_005
/*
// The designated initiali ...
//
// TestBedViewControler_004.m
// UIViewAnimationsTest
//
// Created by mir on 11-4-1.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "TestBedViewControler_004.h"
@implementation TestBedViewControler_004
/*
// The designated initiali ...
iPhone 翻转动画
- 博客分类:
- iphone
//
// TestBedViewControler_003.m
// UIViewAnimationsTest
//
// Created by mir on 11-4-1.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "TestBedViewControler_003.h"
@implementation TestBedViewControler_003
/*
// The designated initiali ...
iPhone 淡入淡出动画
- 博客分类:
- iphone
//
// TestBedViewControl_002.m
// UIViewAnimationsTest
//
// Created by mir on 11-4-1.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "TestBedViewControler_002.h"
@implementation TestBedViewControler_002
/*
// The designated initialize ...
//
// TestBedController_001.m
// PDF_Reader
//
// Created by mir on 11-4-15.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "TestBedController_001.h"
@implementation TestBedController_001
/*
// The designated initializer. Override if ...
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
[super viewDidLoad];
UITestView *testView=[[UITestView alloc] initWithFrame:self.view.bounds];
[self.view addSubview:testView];
[testView release];
//UIView *view = ...
在地图上显示自己当前所在的位置。
//
// UserLoactionTestViewController.m
// UserLoactionTest
//
// Created by mir on 11-8-14.
// Copyright __MyCompanyName__ 2011. All rights reserved.
//
#import "UserLoactionTestViewController.h"
@implementation UserLoactionTestViewController
...
有时候当键盘弹出时会把输入框盖住,这时候我们就没法看到自己到底输入的是什么了,这时候我们就需要注册两个事件,那就是在键盘显示的时候 把输入框的位置放在可见的地方 ,当关闭键盘时,在将输入框还原,以下就是解决问题的具体方法,我们只要注册就可以了
// Call this method somewhere in your view controller setup code.
- (void)registerForKeyboardNotifications
{
[[NSNotificationCenter defaultCenter] removeObserver:self
...
前段时间看了下iPhone的简单推送,发现可以做闹钟功能,于是便写了一个闹钟功能,有兴趣的朋友可以看看,
theMovie = [[MPMoviePlayerController alloc] init];
theMovie.view.backgroundColor = [UIColor blackColor];
theMovie.view.frame = [AppUIViewController getInstance].view.bounds;
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, theMovie.view.center.y - 25,
theMovi ...
1 ,用存文件的方式实现持久存储
2 ,NSUserDefault 简单数据存储
3 ,数据库存取
//
// TestBedViewController.m
// Core_DataTest
//
// Created by mir on 11-3-31.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "TestBedViewController.h"
#import "Department.h"
#import ...
info.plist中
Icon already includes gloss effects 设置icon的高亮是否需要
icon file 图标
Bundle version 版本信息
Bundle display name 应用名称
//更新的
---------------------------------
CFBundleDisplayName 包的显示名称 应用程序包的显示名称。该名称可以使用InfoPliststring进行本地化。Xcode最初将该值设为用于创建Xcode项目的名称
CFBundleName 包名称 应用程序简短的显示名 ...