- 博客(12)
- 收藏
- 关注
原创 webView scroll滑动事件
public class ScrollWebView extends WebView{ private OnScrollChangedCallback mOnScrollChangedCallback; public ScrollWebView(final Context context) { super(context); }...
2013-04-24 16:04:16 454
原创 图片捕捉 保持高不变 压缩
UIImage * image = [self captureScreenInRect:viewController.view]; float ratio = image.size.width/image.size.height; image = [self resizeImage:image size:CGSizeMake(height*ratio, hei...
2013-04-23 11:11:44 85
原创 wifi设置界面带有back
Intent intent = new Intent(WifiManager.ACTION_PICK_WIFI_NETWORK); intent.putExtra("only_access_points", true); intent.putExtra("extra_prefs_show_button_bar", true); intent.putEx...
2013-04-19 15:08:13 265
原创 禁掉menu但是保留actionbar
在activity里面public boolean dispatchKeyEvent(KeyEvent event) { final int keycode = event.getKeyCode(); final int action = event.getAction(); if (keycode == KeyEvent.KEYCODE_MENU &a...
2013-04-19 15:06:46 70
原创 替换SearchView Icon
<style name="Theme" parent="Your parent theme"><item name="android:searchViewSearchIcon">@android:drawable/ic_search</item></style>
2013-04-19 14:57:31 172
原创 listView中editview焦点问题
http://stackoverflow.com/questions/2679948/focusable-edittext-inside-listview/2680077#2680077
2013-04-19 14:51:57 165
原创 在 actionbar中使用 searchview
package="com.example.test"android:versionCode="1"android:versionName="1.0" ><uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /><applicatio
2013-04-19 14:42:28 166
原创 图片翻转
UIImage *img=[UIImage imageNamed:@"sina.png"]; UIImage * img1 = [UIImage imageWithCGImage:img.CGImage scale:img.scale orientation:UIImageOrientationRig...
2013-04-16 10:12:09 69
原创 JSONModel的使用
这个lib 非常好用,专门用来解析json的,当你解析json的时候,只需要写出要解析的对象的头文件就好了,不需要self.id = [jsonDict objectForKey:@"id"];self.name = [jsonDict objectForKey:@"name"];self.profileImageBig = [jsonDict objectForKey:@"pro...
2013-04-15 14:57:45 77
原创 uitabbar 移除
NSMutableArray modifyMe = [[myBar items] mutableCopy];[modifyMe removeObjectAtIndex:idx];NSArray *newItems = [[NSArray alloc] initWithArray:modifyMe];[myBar setItems:newItems animated:true]; ...
2013-04-14 18:16:34 90
原创 清理缓存
NSFileManager *filemgr;filemgr = [NSFileManager defaultManager];if ([filemgr removeItemAtPath: [NSHomeDirectory() stringByAppendingString:@"/Library/Caches"] error: NULL] == YES) ...
2013-04-14 17:51:57 182
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人