`
mrjeye
  • 浏览: 176627 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
注册: UISwipeGestureRecognizer *recognizer; recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeFrom:)]; [recognizer setDirection:(UISwipeGestureRecognizerDirectionRight)]; [[self view] addGestureRecognizer:recognizer]; [recog ...
@interface UIImage (Compress) - (UIImage *)compressedImage; - (CGFloat)compressionQuality; - (NSData *)compressedData; - (NSData *)compressedData:(CGFloat)compressionQuality; @end #define MAX_IMAGEPIX 200.0 // max pix 200.0px #define MAX_IMAGEDATA_LEN 50000.0 // max ...
pom: <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> <version>${org.mybatis-version}</version> </dependency> <dependency> <groupId>org.mybatis.caches</groupId> <artifactId>myb ...
Root.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>StringsTable</key> ...
.pch #ifndef __OPTIMIZE__ #define NSLog(...) NSLog(__VA_ARGS__) #else #define NSLog(...) {} #endif
在 传统的桌面应用程序中,偏好设置是一些专门面向应用程序的设置,用于配置应用程序的行为和外观。iPhone OS也支持应用程序偏好设置,但并不将它作为应用程序整体的一部分。在iPhone OS上,应用程序级别的偏好设置并不 ...
UIScrollView* scroll = [[UIScrollView alloc] init]; NSLog(@"scroll retain count 1 is %d", [scroll retainCount]); ControlPanel* cp = [[ControlPanel alloc] init]; NSLog(@"control panel retain count 1 is %d", [cp retainCount]); [scroll ad ...

UITextField密码框

[txtPass setSecureTextEntry:YES];
<%@ tag trimDirectiveWhitespaces="true" %>

mybatis错误备忘

刚在mybatis里遇到的几个错误 Mapped Statements collection does not contain value for ... 原因之一可能是:Mapper配置的namespace不唯一,需要指定不一样的命名空间给mapper标签。 org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already con ...
cd vim .profile 加入行:export PATH=${PATH}:/usr/local/mysql/bin source .profile
圆角: CALayer * layer = [theView layer]; [layer setMasksToBounds:YES]; [layer setCornerRadius:theRadius]; [layer setBorderWidth:theBorderWidth]; [layer setBorderColor:theColor.CGColor]; 其中:theView(UIView)为目标view theRadius(float)为圆角半径 theBorderWidth(float)为边框大小 theColor(UIColor)为边框颜色 ...

国际化

一、获取系统所支持的国际化信息 在国际化之前,你可以在iphone中的”设置->通用->多语言环境->语言”中来查看你的iphone支持哪些语言,当然也可以写一段代码测试一下你的iphone都支持哪些语言.测试代码如下: NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSArray *languages = [defaults objectForKey:@"AppleLanguages"]; NSLog(@"%@", languages); 注: ...
#include <reg51.h> #include <delay.h> #define uint unsigned int #define uchar unsigned char /** * 显示一个LONG数据类型(显示最大值是99999999) * @param val 要显示的数字 * @param deg 小数点位置(从后向前数) */ void printLong(long val,uint deg); void main() { while(1) { printLong(1234,0); delay(50); } } void prin ...
mysql $ftp ftp.cn.freebsd.org $cd pub/FreeBSD/distfiles $ls mysql* $get mysql-5.0.18.tar.gz $bye $tar -zxvf mysql-5.0.18.tar.gz
Global site tag (gtag.js) - Google Analytics