`
文章列表
pop跳转:   [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:2] animated:YES];或for (UIViewController *temp in self.navigationController.viewControllers) {           if ([temp isKindOfClass:[你要跳转到的Controller class]]) {              [self.navigati ...
1.在第一个view的controller 的.h文件中创建一个协议 @protocol PassValueDelegate <NSObject> -(void)passRecipeValue:(Recipe *)recipe; @end  2.在第一个view的controller 的.m文件中实现这个协议 -(void) passRecipeValue:(Recipe *)recipe { self.selectedRecipe = recipe; [self.recipeDosageTableView reloadData]; } ...
NSString *reusedIdentifer = @"recipeDosageCell"; UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:reusedIdentifer]; if (cell == nil) { cell = [[UITableViewCell alloc ] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reusedIdentifer]; ...
1。消息传送到icon图标上的数字显示属性 在iOS8中设置application badge value 会抛错:Attempting to badge the application icon but haven't received permission from the user to badge the   原因是因为在ios8中,设置应用的application badge value需要得到用户的许可。使用如下方法咨询用户是否许可应用设置application badge value   UIUserNotificationSettings *settings = [U ...
Linux 下的 rz 和 sz命令   1、rz命令通过secueCrt  从window 系统中上传文件到Linux系统   2、sz命令通过 secuCrt 从Linux 系统中上传文件到 window下   注意: Linux 下上传和下载的目录要有些权限  否则上传会失败!
MySQL 日期类型:日期格式、所占存储空间、日期范围 比较。 日期类型        存储空间       日期格式                 日期范围 ------------ ---------   --------------------- ----------------------------------------- datetime       8 bytes   YYYY-MM-DD HH:MM:SS   1000-01-01 00:00:00 ~ 9999-12-31 23:59:59 timestamp      4 bytes   YYYY-MM-DD HH:MM ...
1、Ctrl + Shift + F 格式化代码 2、Shift + Alt + S get、set方法生成 3、Shift + Alt + Z  Try ... Catch ...生成 4、Ctrl + Shift + O 导入新的包 和去除 无用的包 5、Ctrl + h  搜索 项目中的关键字 6 、ctrl+shift+R  搜索项目中的 文件 7、Ctrl + / 注释/取消注释单行 8、Ctrl + Shift + /  注释/取消注释代码块
关机命令: 1、halt   立刻关机 2、poweroff  立刻关机 3、shutdown -h now 立刻关机(root用户使用) 4、shutdown -h 10 10分钟后自动关机 如果是通过shutdown命令设置关机的话,可以用shutdown -c命令取消重启 重启命令: 1、reboot 2、shutdown -r now 立刻重启(root用户使用) 3、shutdown -r 10 过10分钟自动重启(root用户使用)  4、shutdown -r 20:35 在时间为20:35时候重启(root用户使用) 如果是通过shutdown命令设置重启的话,可以用s ...
ubuntu下vim修复   修复前提,你到UBUNTU可以联网,否则只能卸载,不能安装 1.sudo apt-get remove vim-common 2.sudo apt-get install vim
import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.util.Random; import javax.imageio.ImageIO; import javax.imageio.stream.ImageOutputStream; p ...
public static String getNextFewDays(String currentDateString, Integer offsetDays) { Date tempdate = null; try { tempdate = new SimpleDateFormat().parse(currentDateString); } catch (ParseException e) { e.printStackTrace(); } for (int i = 0; i < offsetDays; i++) { Cal ...
http://www.k780.com/api/idcard.get身份证,手机号查询网站,js应用
1、POI 导出 Excel public static void exportUserExcel(String[] headers, List<Muser> userList, OutputStream out) { HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = wb.createSheet("会员表"); HSSFRow row = sheet.createRow(0); HSSFCellStyle style = wb.createCellStyle(); s ...
1、ajax 提交请求 $.ajax({ type:"post", url : "${ctx}/front/Hotel/getAllHotelByAjax.do", dataType : "json", success : function(result) { try { for(var i=0;i<result.length;i++){ $(".cityHotel_ul").append("<li &g ...
解决方案:点击线程右键选择Resume 选项,然后即可重启
Global site tag (gtag.js) - Google Analytics