当前位置: 编程技术>移动开发
本页文章导读:
▪sldingDrawer多边向抽屉 sldingDrawer多方向抽屉
多方向抽屉的参考资料。panelhttp://blog.csdn.net/hellogv/article/details/6264706http://blog.csdn.net/lovehong0306/article/details/7451264
......
▪ jar收拾 jar整理
1.整理jar
2.将整理出的jar包在Eclipse中分别设置为用户librarywindow -> preferences -> java -> build path -> user libraries
3.在项目中添加所需的user library。此时在项目开发时如果需用tomcat则.........
▪ Customize UINavigationbar 跟 改变图片大小 Customize UINavigationbar 和 改变图片大小
//加载NavigationBar的背景图片
UINavigationController *navController = [self navigationController];
UINavigationBar *navBar = [navController navigationBar];
CGSize navSize = CGSiz.........
[1]sldingDrawer多边向抽屉
来源: 互联网 发布时间: 2014-02-18
sldingDrawer多方向抽屉
多方向抽屉的参考资料。panel
http://blog.csdn.net/hellogv/article/details/6264706
http://blog.csdn.net/lovehong0306/article/details/7451264
多方向抽屉的参考资料。panel
http://blog.csdn.net/hellogv/article/details/6264706
http://blog.csdn.net/lovehong0306/article/details/7451264
[2] jar收拾
来源: 互联网 发布时间: 2014-02-18
jar整理
1.整理jar
2.将整理出的jar包在Eclipse中分别设置为用户library
window -> preferences -> java -> build path -> user libraries
3.在项目中添加所需的user library。
此时在项目开发时如果需用tomcat则要在tomcat插件中将项目加到tomcat classpath中,否则会报classNotFoundException。
具体步骤为windows -> Preferences -> tomcat -> advanced
但是发布到tomcat或者打包时系统不会将user library中的jar包加入,因此还需在项目属性中设置Deployment Assembly,
具体步骤为选择Properties-Deployment Assembly-Java Bulid Path Entries导入user library(3.6以前叫Java EE Module Dependencies),将添加的user library加入进来。
经过以上设置可以很好的管理jar文件,而且不需要在项目中将jar文件再复制一次,节省空间易于管理
http://blog.csdn.net/jiejiewish/article/details/7758935
[3] Customize UINavigationbar 跟 改变图片大小
来源: 互联网 发布时间: 2014-02-18
Customize UINavigationbar 和 改变图片大小
//加载NavigationBar的背景图片 UINavigationController *navController = [self navigationController]; UINavigationBar *navBar = [navController navigationBar]; CGSize navSize = CGSizeMake(navBar.frame.size.width, navBar.frame.size.height); UIImage *scaledImage = [self scaleToSize:[UIImage imageNamed:@"wall-header_title.png"] size:navSize]; [navBar setBackgroundImage:scaledImage forBarMetrics: UIBarMetricsDefault]; //改变 rightBarButtonItem 形状 UIBarButtonItem * item = [[UIBarButtonItem alloc] initWithCustomView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"btn_header_update_normal.png"]]]; self.navigationItem.rightBarButtonItem = item; - (UIImage *)scaleToSize:(UIImage *)img size:(CGSize)newsize{ // 创建一个bitmap的context // 并把它设置成为当前正在使用的context UIGraphicsBeginImageContext(newsize); // 绘制改变大小的图片 [img drawInRect:CGRectMake(0, 0, newsize.width, newsize.height)]; // 从当前context中创建一个改变大小后的图片 UIImage* scaledImage = UIGraphicsGetImageFromCurrentImageContext(); // 使当前的context出堆栈 UIGraphicsEndImageContext(); // 返回新的改变大小后的图片 return scaledImage; } // BackButton页面 if([self.navigationController.viewControllers objectAtIndex:0] != self) { UIButton *backButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)]; [backButton setImage:[UIImage imageNamed:@"btn_header_prev_normal.png"] forState:UIControlStateNormal]; [backButton setShowsTouchWhenHighlighted:TRUE]; [backButton addTarget:self action:@selector(popViewControllerWithAnimation) forControlEvents:UIControlEventTouchDown]; UIBarButtonItem *barBackItem = [[UIBarButtonItem alloc] initWithCustomView:backButton]; self.navigationItem.hidesBackButton = TRUE; self.navigationItem.leftBarButtonItem = barBackItem; }
最新技术文章: