ios7

GPUImage swift iOS 7

一世执手 提交于 2019-12-11 11:19:23
问题 Does anybody released app with Swift and GPUImage for iOS 7+ ? When I trying to post an app I'm getting error (it isn't my screen, but I getting the same) App worked perfect on all devices and simulators for ios 7, also I sent it as adhoc via testflight and it still worked, but I can't release it now. 回答1: So the root problem here is the support for embedded frameworks. To make an Objective-C framework like GPUImage available to Swift projects, you have to build it as a module, which first

BLE in the background

北城以北 提交于 2019-12-11 11:16:52
问题 I'm working on a project with iBeacon that requires the app run constantly in the background. Nevermind the practicality of this, please. The iBeacon API doesn't allow apps to range in the background constantly or receive any other communication other than enter/exit events (accept in the case where you set the needsDisplay flag, but this isn't as passive as I need it to be). Once in a particular region, it seems you can't detect which beacon you're closest to while the app is completely

Drawing in custom UINavigationBar, attached to top

戏子无情 提交于 2019-12-11 10:44:38
问题 I have a subclass of UINavigationBar . It's barPosition is UIBarPositionTopAttached . Than I override -(void)drawRect:(CGRect)rect in my subclass. The rect , that comes as parameter, has always 44 px height, and I can draw only inside this rect. So, I can't perform drawing over the status bar and it has default look. If I comment -drawRect out, than it looks as expected, navigation bar and status bar look as a whole and have 64 px height. Is there a way to achieve this effect with having

Filter array using custom object property [closed]

☆樱花仙子☆ 提交于 2019-12-11 10:44:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have an array of objects.Each object has its own properties (name, desc, status). name and desc are NSString and status is BOOL . I want to filter this array by status property. Ex: Get all objects with status == YES . How can I achieve this? 回答1: Try use NSPredictate NSPredicate *predicate = [NSPredicate

How to install a swift library consisting just of swift files

六眼飞鱼酱① 提交于 2019-12-11 10:43:31
问题 Suppose I have a swift library that consists of a large folder with subfolders with subfolders all containing many .swift files I would like my .swift project to be aware of - just as if I had written all that code myself. My swift project targets ios7+ meaning there are some issues with various package systems - and the given library I am trying to add acually suggests using the above method. Currenly I have "attached" the swift-library-folder next to my own .swift files and during this I

UISearchBar customization code crashes in iOS7, works on iOS6

落花浮王杯 提交于 2019-12-11 10:39:23
问题 I have an iOS application, built to support iOS5.1, and I was customizing the cancel button inside search bars. The code I'm using and that works until iOS6.1 is the following: id barButtonAppearanceInSearchBar = [UIBarButtonItem appearanceWhenContainedIn: [UISearchBar class], nil]; [barButtonAppearanceInSearchBar setTitle: [self localizedStringValueFor:@"Cancel"]]; Somehow the second line will cause a bad access exception, the barButtonAppearanceInSearchBar seems to be deallocated when I try

Caller doesn't get event of End Call from receiver in opentok ios sdk

☆樱花仙子☆ 提交于 2019-12-11 09:59:30
问题 I have an iphone app in which I need to manage video call from caller to receiver and its works perfectly by using Opentok framework. Video call and audio everything working fine. But I have a problem with Ending a call from receiver side without picking up the call. If receiver picked up the call and Then he ends the call then caller receives event of ending a call. But when if receiver doesn't picked up the call from app and directly end the call then caller doesn't get any event and it

NSURLSession + HTTPS is any other setup needed?

瘦欲@ 提交于 2019-12-11 09:53:49
问题 I'm sending with POST some data to server using NSURLSession , I did it over HTTP, now I had to change to HTTPS. To my pleasant surprise all is working fine, which means that all I did was changing url from http to https. But is it enough? Should I take any additional steps? Is it secured? The server has SSL certificate. 来源: https://stackoverflow.com/questions/25864622/nsurlsession-https-is-any-other-setup-needed

Schedule notification in background task

亡梦爱人 提交于 2019-12-11 09:37:18
问题 I'm developing a Calendar/Alarm app for iOS which is synchronising with a web server. When an activity is added on the server, a push notification is sent out so that the iOS client can fetch the new data and, if needed, update and schedule the time for next alarm (local notification). But this only works when the app is open on client side. I would like the client to receive the push notifications and if needed, re-schedule the time for next alarm in background. Is this impossible on iOS?

iOS7/8 - Send Touch Events on Non Jailbroken iPhone/Pad

眉间皱痕 提交于 2019-12-11 09:37:17
问题 Our requirement is to send touch events from remote service to non jailbroken iPhone or iPad. After researching on this a bit, I understand that GSEvent can no longer (ie. iOS7+ doesnt support this method) be used to simulate touch event. IOHID is other alternative which has been mentioned but again if I understand correctly, iOS 6.1 onwards , entitlement check has been added. IOHIDEventSystemCreate apparently compares the bundle identifier with "com.apple.springboard", if the comparison