资源简介
企业微信虚拟定位远程定位打卡,现场拍照改为从相册选择照片
代码片段和文件信息
//
// HelperSettingController.m
// test
//
// Created by mgfjx on 2019/3/17.
// Copyright © 2019 mgfjx. All rights reserved.
//
#import “HelperSettingController.h“
#import
#import “WWKLocationItem.h“
#import
#import
#define CellHeight 50
#define MainWidth [UIScreen mainScreen].bounds.size.width
@interface HelperSettingController ()
@property (nonatomic strong) UITableView *tableView ;
@end
@implementation HelperSettingController
#pragma mark - LifeCycle
void p_send(id self SEL _cmd id arg1) {
Ivar ivar = class_getInstanceVariable([self class] “_selectionItem“);
// 返回名为test的ivar变量的值
WWKLocationItem *item = (WWKLocationItem *)object_getIvar(self ivar);
CLLocationCoordinate2D coor = item.coordinate;
NSString *string = [NSString stringWithFormat:@“%lf%lf“ coor.latitude coor.longitude];
[[NSUserDefaults standardUserDefaults] setobject:@(coor.latitude) forKey:@“kXLLatitude“];
[[NSUserDefaults standardUserDefaults] setobject:@(coor.longitude) forKey:@“kXLLongitude“];
[[NSNotificationCenter defaultCenter] postNotificationName:@“kNotificationVCLoad“ object:string];
UIViewController *vc = (UIViewController *)self;
[vc.navigationController popViewControllerAnimated:YES];
}
void viewDidLoad(id self SEL _cmd) {
SEL superSel = _cmd;
Method sm = class_getInstanceMethod([self superclass] superSel);
IMP imp = method_getImplementation(sm);
imp(self superSel);
UIViewController *vc = (UIViewController *)self;
vc.title = @“虚拟定位“;
vc.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithtitle:@“确定“ style:UIBarButtonItemstylePlain target:self action:@selector(p_send:)];
}
- (void)viewDidLoad {
[super viewDidLoad];
self.title = @“助手设置“;
self.view.backgroundColor = [UIColor whiteColor];
[self initViews];
}
- (void)initViews {
UITableView *table = [[UITableView alloc] initWithframe:self.view.bounds style:UITableViewstylePlain];
table.delegate = self;
table.dataSource = self;
[self.view addSubview:table];
self.tableView = table;
table.tableFooterView = [UIView new];
CGFloat value = 0.95;
table.backgroundColor = [UIColor colorWithRed:value green:value blue:value alpha:1.0];
}
#pragma mark - UITableViewDelegate UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 3;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
if (section == 0) {
return 1;
}else if (section == 1){
if ([MainKeyMananer manager].fakeLocation) {
return 2;
}else{
return 1;
}
}else{
return 2;
}
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-18 17:37 weworkhelper\
目录 0 2019-03-12 17:16 weworkhelper\obj\
目录 0 2019-03-12 17:16 weworkhelper\obj\debug\
文件 6148 2019-03-17 21:29 weworkhelper\.DS_Store
目录 0 2019-05-10 16:23 __MACOSX\
目录 0 2019-05-10 16:23 __MACOSX\weworkhelper\
文件 120 2019-03-17 21:29 __MACOSX\weworkhelper\._.DS_Store
目录 0 2019-03-18 17:38 weworkhelper\.theos\
文件 0 2019-03-18 17:38 weworkhelper\.theos\fakeroot
目录 0 2019-03-18 17:36 weworkhelper\.theos\obj\
目录 0 2019-03-18 17:36 weworkhelper\.theos\obj\armv7\
目录 0 2019-03-14 09:02 weworkhelper\.theos\obj\armv7\WeWorkHelper.dylib.dSYM\
目录 0 2019-03-14 09:02 weworkhelper\.theos\obj\armv7\WeWorkHelper.dylib.dSYM\Contents\
目录 0 2019-03-14 09:02 weworkhelper\.theos\obj\armv7\WeWorkHelper.dylib.dSYM\Contents\Resources\
目录 0 2019-03-14 09:02 weworkhelper\.theos\obj\armv7\WeWorkHelper.dylib.dSYM\Contents\Resources\DWARF\
文件 12446 2019-03-18 17:36 weworkhelper\.theos\obj\armv7\WeWorkHelper.dylib.dSYM\Contents\Resources\DWARF\WeWorkHelper.dylib
文件 647 2019-03-18 17:36 weworkhelper\.theos\obj\armv7\WeWorkHelper.dylib.dSYM\Contents\Info.plist
文件 53980 2019-03-18 17:36 weworkhelper\.theos\obj\armv7\WeWorkHelper.dylib
目录 0 2019-03-18 17:36 weworkhelper\.theos\obj\armv7\src\
文件 9836 2019-03-17 21:57 weworkhelper\.theos\obj\armv7\src\WindowInfoManager.m.5ddec90b.o
文件 4952 2019-03-14 08:59 weworkhelper\.theos\obj\armv7\src\SuspensionView.m.5ddec90b.o
文件 3928 2019-03-14 08:59 weworkhelper\.theos\obj\armv7\src\Location
文件 7824 2019-03-18 17:36 weworkhelper\.theos\obj\armv7\src\Tweak.xm.5ddec90b.o
文件 8532 2019-03-18 09:09 weworkhelper\.theos\obj\armv7\src\MainKeyMananer.m.5ddec90b.o
文件 27888 2019-03-18 09:29 weworkhelper\.theos\obj\armv7\src\HelperSettingController.m.5ddec90b.o
文件 136528 2019-03-18 17:36 weworkhelper\.theos\obj\WeWorkHelper.dylib
目录 0 2019-03-18 17:36 weworkhelper\.theos\obj\arm64\
目录 0 2019-03-14 09:02 weworkhelper\.theos\obj\arm64\WeWorkHelper.dylib.dSYM\
目录 0 2019-03-14 09:02 weworkhelper\.theos\obj\arm64\WeWorkHelper.dylib.dSYM\Contents\
目录 0 2019-03-14 09:02 weworkhelper\.theos\obj\arm64\WeWorkHelper.dylib.dSYM\Contents\Resources\
目录 0 2019-03-14 09:02 weworkhelper\.theos\obj\arm64\WeWorkHelper.dylib.dSYM\Contents\Resources\DWARF\
............此处省略238个文件信息
- 上一篇:xilinx jesd204b license
- 下一篇:低频数字式相位测量仪
相关资源
- iOS_Animations_by_Tutorials_v6.0.0.zip (iOS1
- L-IG41M3 V1.1 更新BIOS工具.zip
- Eclipse64位3.6.2太阳神版eclipse-jee-helio
- 友价免签约支付接口插件.zip
- chrome.devtools.network的Chrome插件
- PDF拼版插件 Quite Imposing Plus
- ios模仿网易新闻首页效果
- Visual Studio开发Excel插件
- DxOpenNI插件,为OPENNI 的MMD专用
-
IOS学生信息系统ob
jective-C实现 - Astar,Google小插件,压缩包:1.0.3_0.
- google 的JSON插件
- 3d max x文件插件2015-2018版本Axe_free_v2
- cal3D插件导出人物动作
- genymotion 两个插件包for eclipse
- ios开发之 通讯录
- STVD代码量插件
- ecshop支付插件paypal.zip
- RU DOS版、EFI版32bit/64bit BIOS常用工具
- toastr插件
- h5无插件 RTSP 摄像头在线播放代码2
- 非ie内核浏览器activex支持插件
- RTX客户端通达OA插件
- unity插件 build report tool
- 一键清除firefox cookie和缓存插件
- 迪兰恒进rx574三星bios
- Revit to lumion插件
- unity树状图插件TreeView
- 如何获取iOS设备的UUID
- opencart 在线聊天插件livechat
评论
共有 条评论