`
刘燕宝宝鱼
  • 浏览: 25915 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表

iOS 定位

 
1、使用iOS定位功能 需要使用此类    CLLocationManager* locationManager,首先引入库文件 #import <CoreLocation/CoreLocation.h>,在工程配置中添加CoreLocation的静态库。 2、在定位的类实现此协议 <CLLocationManagerDelegate> 3、初始化类,新建locationManager对象。 -(id)initLocationManager { self.locationManager=[[CLLocationManager alloc]init]; ...
       判断设备网络状态 Reachability.h Reachability.m文件添加到工程,引入相对应的库文件即可使用,调用方法如下: +(BOOL)hasNet{ if([Reachability IsEnableWIFI]||[Reachability IsEnable3G]){ //皆为静态方法,不需新建对象。方便。 return YES; } return NO; }   文件都在附近中,希望可以帮到需要之人。
1、新建view,在View 中添加控件,并且为各个控件设置不同的tag值。 2、新建对应的Object c 对象   -(id)initWithCoder:(NSCoder *)aDecoder{ self=[super initWithCoder:aDecoder]; if (self) { [self initView]; } return self; } -(void)createPopSearchView{ NSArray * popSearchViews=[[NSBundle mainBundle] lo ...
1、首先新建View 2、将Table View cell 控件拖入View  3、自定义Table View Cell 的identifier  4、设计自己的Table View Cell 5、在UItableView 方法中声明使用自己自定义的Cell - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CustomCellIdentifier = @"Custom ...
       前段时间做了arcgis bundle压缩地图数据的读取,方法如下,使用object C  + (NSData *)getCompressedTile:(NSString *)filepath x:(NSString *)x y:(NSString *)y z:(NSString *)z { filepath = [NSString stringWithF ...
首先要在页面中创建一个输出action返回信息的地方:如下代码: <div id="tabs-2" class="tabFrame" style="padding:0px; margin:0px;border: none;"> <fieldset class="form_fieldset" style="margin-top: 0px;"> <legend style="margin-top: 7px">提示信息</ ...
我用poi实现 doImport(String url) throws Exception{ FileInputStream file=new FileInputStream(url);//获取excel文件 HSSFWorkbook hssfworkbook = new HSSFWorkbook(file); HSSFSheet hssfsheet = hssfworkbook.getSheetAt(0);//第一个工作表 Map<String, Object> map=new HashMap<String, Object>( ...
public Map<String,String> doExport(String sort,long fondsId,long metadataType) throws IOException{ //让用户选择导出文件的目录 MetaDataService meService=new MetaDataService(); List<MetadataPO> metaList=meService.getmetaDataList(sort,fondsId,metadataType).getList(); StringB ...
以下代码是导出dbf文件 public String doCreateDBF(String[] fieldsZh,String[] fields,List list,HttpServletResponse response,int [] datasize) throws IOException{ DBFWriter Writer=new DBFWriter();//首先要创建一个DBFwriter response.setCharacterEncoding("UTF-8"); OutputStream os=response.getOut ...
       java操作dbf文件Api提供组织:http://sarovar.org/projects/javadbf/但是到2004年该组织停止了javadbf 的更新。并且对中文的支持也不够好,后来参照一哥们的提示,修改了其中的方法,中文不在乱码,也不会在读取的时候丢失数据,根据我的认识,我对这一过程做一总结。需要重新编译后包或交流的哥们可加我QQ:18042005836        操作dbf文件的步骤是从本地上传到服务器,然后在从中获取数据,下面方法就是从dbf文件中获取数据,将数据封装到List中返回。在插入数据库中。 public List<String[] ...
Global site tag (gtag.js) - Google Analytics