这些属性,内部都是结构体:CGRect CGPoint
CGFloat背景知识:所有的控件都是view的子类,屏幕就是一个大的view;每个view都有个viewController,它是view的管家,每个view对应着一个viewController,来管理view。frame
& bounds...
分类:
移动开发 时间:
2014-05-23 04:18:38
阅读次数:
338
同样是删除cell问题,帮我看看问题出现在哪,谢谢!我的类文件myFile是继承UIViewController的(目的是为了能够在一个view里切换不同的tableView),在myFile.h中定义一个可变数组editContactsList,然而在IB里面添加了一个view,两个tableVi...
分类:
其他好文 时间:
2014-05-23 03:21:49
阅读次数:
380
使用ViewPager作为一个页面进行切换,里面可以存放很多View,但有时在操作View时不小心滑动一下就有可能跳到下一页,这并不是我们想要的,这里就需要重写ViewPager修改它的滑动条件
效果图
程序目录结构
BTViewPager.java
package com.example.viewpagerdemo;
import android.content.Con...
分类:
移动开发 时间:
2014-05-23 02:24:13
阅读次数:
297
介绍一个list滑动时通过一个text提示Array首字母位置的应用
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce...
分类:
其他好文 时间:
2014-05-23 00:58:42
阅读次数:
326
介绍在在title bar上显示indeterminate progress
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ...
分类:
其他好文 时间:
2014-05-23 00:31:27
阅读次数:
352
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo...
分类:
其他好文 时间:
2014-05-23 00:30:50
阅读次数:
415
注意两点
1.通过android:checkedButton="@+id/lunch"而不是item中的 android:checked="true"设置的某人被选中状态
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
a...
分类:
其他好文 时间:
2014-05-23 00:04:35
阅读次数:
344
话不多少,直接上代码,思路还是挺简单的。
UIWebView *webView = [[UIWebView alloc]initWithFrame:self.view.frame];
// HTML文件来自Project
// 步骤:path - > url - > request with url - > loadRequest
NSStrin...
分类:
编程语言 时间:
2014-05-22 23:53:05
阅读次数:
442
1> 使用场合* UIImageView: 如果仅仅是显示图片,不需要监听图片的点击*
UIButton: 既要显示图片,又要监听图片的点击2> 相同:能显示图片3> 不同点* UIButton能处理点击事件,
UIImageView不能处理点击事件* UIButton既能显示图片, 又能显示文字*...
分类:
其他好文 时间:
2014-05-22 16:02:38
阅读次数:
198
【摘自http://blog.itpub.net/285892/viewspace-573357】前言这个技巧说来很简单。我们让Apache把任何stylesheet重定向到一个指定的PHP脚本。该脚本会一行行读取stylesheet的内容,找到并替换任何用户自定义的变量,最终会重新生成一个CSS样...
分类:
Web程序 时间:
2014-05-22 14:09:58
阅读次数:
521