当使用蓝牙连接条形码扫描仪设备时,我面临键盘问题.
流:
1)我已打开蓝牙,并通过输入显示的代码连接使用蓝牙连接条形码扫描仪设备.
2)我可以使用扫描仪,但即使我们调用了becomeFirstResponder,默认键盘也不会显示.
3)当我断开扫描仪设备或关闭蓝牙连接时,键盘即将到来.
注意:以下是我正在使用的条形码扫描仪设备的链接
有人遇到过这种问题吗?请建议如何解决此问题.
提前致谢..!
我有一个名为MyCalendar的日历.
我已将一些事件存储到该日历中..
我知道如何从日历中删除所有事件.如下所示
NSDate *startDate = [NSDate date];
NSDate* endDate = [NSDate dateWithTimeIntervalSinceNow:[[NSDate distantFuture] timeIntervalSinceReferenceDate]];
NSArray *calendarArray = [NSArray arrayWithObject:self.defaultCalendar];
NSPredicate *predicate = [self.eventStore predicateForEventsWithStartDate:startDate
endDate:endDate
calendars:calendarArray];
NSArray *events = [self.eventStore eventsMatchingPredicate:predicate];
for (EKEvent *event in events) {
NSError* err = nil;
[self.eventStore removeEvent:event span:EKSpanFutureEvents commit:YES error:&err];
}
Run Code Online (Sandbox Code Playgroud)
但是当用户从设备中删除我的应用时.如何删除与Calendar MyCalendar相关的所有事件.
由于不必要的某些事件已删除的应用程序仍然存在于设备日历.
如果用户不想使用我的应用程序,最好保留与我的应用程序相关的事件.
任何想法和建议表示赞赏..这可能吗?
提前致谢..
我正在使用可可豆荚将多个第三方文件集成到我的项目中.
我必须将pod下面集成到我的项目中
xcodeproj 'MyApp'
workspace 'MyApp'
source 'https://github.com/CocoaPods/Specs.git'
target :"MyApp", :exclusive => true do
platform :ios, '7.0'
pod 'AFNetworking', '2.0.2'
pod 'TwilioSDK', '~>1.2.2'
pod 'SocketRocket', '0.3.1-beta2'
pod 'AppRTC'
end
Run Code Online (Sandbox Code Playgroud)
当我运行pod安装.我得到重复,如下所示..

当我构建我的应用程序时,我收到错误
ld: warning: directory not found for option '-L/Users/anand/Documents/
Project/myApp_Backups/myApp_June/myApp_WEBRTC/Pods/build/Debug-
iphoneos'
duplicate symbol _MD5_Update in:
/Users/anand/Documents/Project/myApp_Backups/myApp_June/
myApp_WEBRTC/Pods/AppRTC/Lib/libWebRTC.a(nss_static.md5.o)
/Users/anand/Documents/Project/myApp_Backups/myApp_June/
myApp_WEBRTC/Pods/TwilioSDK/Libraries/libcrypto.a(md5_dgst.o)
duplicate symbol _SHA1_Update in:
duplicate symbol _OBJC_IVAR_$_SRIOConsumer._readToCurrentFrame in:
/Users/anand/Library/Developer/Xcode/DerivedData/myApp-
gxdbyoohznnpigavdqmaeilzlavd/Build/Products/Debug-iphoneos/libPods-
myApp-SocketRocket.a(SRWebSocket.o)
/Users/anand/Documents/Project/myApp_Backups/myApp_June/
myApp_WEBRTC/Pods/AppRTC/Lib/libWebRTC.a(socketrocket.SRWebSocket.o)
ld: 71 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v …Run Code Online (Sandbox Code Playgroud) 我在活动开始前5分钟创建了一个带有闹钟的日历活动.
我的活动看起来像这样
EKEvent <0x7fd8ae554ba0>
{
EKEvent <0x7fd8ae554ba0>
{ title = E-Cold
1mg;
location = ;
calendar = EKCalendar <0x7fd8ae717420> {title = Medicines; type = Local; allowsModify = YES; color = #1badf8;};
alarms = (
"EKAlarm <0x7fd8ae71bd30> {triggerInterval = -300.000000}"
);
URL = (null);
lastModified = 2015-03-18 09:01:41 +0000;
startTimeZone = Asia/Kolkata (GMT+5:30) offset 19800;
startTimeZone = Asia/Kolkata (GMT+5:30) offset 19800
};
location = ;
structuredLocation = (null);
startDate = 2015-03-18 02:30:00 +0000;
endDate = 2015-04-01 02:30:00 +0000;
allDay = 0; …Run Code Online (Sandbox Code Playgroud) 我已连接条形码扫描仪设备
我想知道它的配对状态.是否与设备连接.
- (void) centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI
{
self.connectingPeripheral = peripheral;
NSLog(@"@@@@@@Peripheral Name is:%@ Identifier:%@ Services:%@",peripheral.name,peripheral.identifier,peripheral.services);
[self.bluetoothManager connectPeripheral: self.connectingPeripheraloptions: nil];
}
Run Code Online (Sandbox Code Playgroud)
我正在获取有关Mac附近并启用的信息.但我没有在此方法中获取条形码扫描仪信息.
我需要条码扫描器是否连接到设备.
任何人都可以建议如何找到条码扫描仪的连接.
感谢您的回复,谢谢.
我使用下面的代码下载了最新的paypal IOS SDK
https://github.com/paypal/PayPal-iOS-SDK
我添加了示例中指定的框架..
Undefined symbols for architecture i386:
"std::terminate()", referenced from:
___clang_call_terminate in libPayPalMobile.a(libCardIO.a-i386-master.o)
"___cxa_begin_catch", referenced from:
___clang_call_terminate in libPayPalMobile.a(libCardIO.a-i386-master.o)
"___gxx_personality_v0", referenced from:
Dwarf Exception Unwind Info (__eh_frame) in libPayPalMobile.a(libCardIO.a-i386-master.o)
Dwarf Exception Unwind Info (__eh_frame) in libPayPalMobile.a(libCardIO.a-i386-master.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我也尝试过
转到目标 - >构建设置 - >链接 - >其他链接器标志添加-lc ++和-ObjC到它
我的项目中有SDWebImage ..
请提出我出错的任何想法..
提前致谢..