ios8.1

How to integrate latest SDWebImage API in my Swift based project?

对着背影说爱祢 提交于 2019-12-18 19:33:32
问题 I have used SDWebImage with Objective C and it worked great for me but now I am learning Swift and trying to integrate the latest version of the API but I am stucking at every step as API is in Objective C and there are no steps mentioned to use the API with Swift. I read the documents and created the bridge header file and included the required file like below: #ifndef MyProject_Bridging_Header_h #define MyProject_Bridging_Header_h #import <SDWebImage/UIImageView+WebCache.h> #import

Simulator error FBSSystemServiceDomain code 4

两盒软妹~` 提交于 2019-12-18 09:55:20
问题 I'm trying to run an app in the simulator but get this error message: Unable to run app in Simulator An error was encountered while running (Domain = FBSSystemServiceDomain, Code = 4) I've not seen any previous references to this from googling around. Its using XCode 6 Beta, the app is in Swift which links to a Obj-C static library. It runs fine on the device. Any ideas? 回答1: Go to the iOS Simulator menu and select Reset Content and Settings. Alternatively, you could quit and reopen the

Make navigation bar transparent regarding below image in iOS 8.1

主宰稳场 提交于 2019-12-18 03:38:24
问题 I try to set my navigation bar transparent regarding a image below this, something like the following image : I tried the solution in transparent navigation bar ios but I don't get the above result, I get only the icon on the left but without any color in the navigation bar, completely transparent. But if I set a background color the transparency disappears at all. There is any way to set a color in the navigation bar and make it transparent?? Thanks in advance. 回答1: just checked on the 8.1

Transparent background for modally presented viewcontroller

吃可爱长大的小学妹 提交于 2019-12-17 07:17:44
问题 I am using Parse & ParseUI. I want my PFLoginViewController subclass to have a transparent background. In the future, I want to lay a blurred view over the background. But.... Once the animate-in of the PFLoginViewController is done, the background turns black... Whilst during the animation the background was transparent. func presentLogin() { var loginViewController = LoginViewController() var signupViewController = SignUpViewController() loginViewController.fields = .UsernameAndPassword |

Iterate object in dictionary with ordered form in swift

Deadly 提交于 2019-12-13 08:59:33
问题 I have a dictionary i want to iterate it in ordered form as the objects are in the dictionary, but after iterating it is iterating in random order. Please help Thanks in advance. 回答1: You can't sort a dictionary but you can sort its keys as follow: let myDict: [String:String] = ["car":"blue", "watch":"black", "bike": "red"] for key in myDict.keys.array.sorted(<) { let value = myDict[key]! println("\(key) = \(value)") } let dashboardItemsTuples : [(String , String)] = [("All Cards" , "cards" )

UIView animateWithDuration behaves differently in iOS 8

江枫思渺然 提交于 2019-12-13 06:56:24
问题 I just switched from iOS 7.1 to iOS 8.1. am encountering the following problem with UIView animateWithDuration . Pictures being worth a thousand words, I made videos of the behavior under each iOS: iOS 7.1: https://vimeo.com/113887812 iOS 8.1: https://vimeo.com/113887814 It's an iPhone app. I should note that I've searched SO and other places before posting. It seems to be a recognized problem, but what I've found are a few references to "using constraint-based animation" (which I didn't

How pick image on Albums - iOS testing KIF

拈花ヽ惹草 提交于 2019-12-12 04:53:09
问题 Faced with this problem, when you select an image from the album comes not click on the image. At point pressure also occurs. What to do? used:[tester choosePhotoInAlbum:@"Moments" atRow:0 column:0]; As well as: [tester tapScreenAtPoint:CGPointMake(47, 150)]; 回答1: I was trying to figure this out as well. Solved it by adding a [tester waitForTimeInterval:1] before [tester tapScreenAtPoint:CGPointMake(47, 150)] Like this: [tester tapViewWithAccessibilityLabel:@"Camera Roll"]; //Album Name

jquery animate doesn't work on ipad after sleep/resume

最后都变了- 提交于 2019-12-12 04:52:03
问题 I'm seeing a strange behaviour on ipad with ios 8.1. I have an html/js app where I use jquery animation for transitions. I use both animation of div position as well as fade in/out effects. Here's part of a simple example: $in = $('#newdiv'); $in.css({position: 'absolute', left: "1024px", top: "0px"}); $in.removeClass('hidden'); $in.animate({left: tx, top: ty}, 400); This works perfectly fine - up to a point. If, while the app is open, I press the "power" button to put the ipad to sleep and

swift animateWithDuration not working in iOS 7

落花浮王杯 提交于 2019-12-12 03:17:00
问题 I have an animation thats running fine in iOS 8.1 but in iOS 7.1 the button just appears where it is supposed to be without animation. The button has leading, trailing and bottom constraints of 0, and height constraint of 80. The constraints are setup in the storyboard. In the viewWillAppear method I change the bottom constraint to -80 so it isn't seen in the beginning. When the user presses a button, the button should animate up, I run this method: func animateCtaUp() { self.ctaView

Core Data Migration issue in IOS 8 only , not IOS 9

允我心安 提交于 2019-12-10 16:50:05
问题 I am facing weird IOS app issue for the Core Data migration. Below are the mentioned Logs for your This issue only happens when an IOS8 Device migrates app from lower version to newer version.Note I am already passing this test in IOS9 using the model version light data migration upgrade. Any quick help is much appreciated as its in production. CoreData: error: -addPersistentStoreWithType:SQLite configuration:(null) URL:file:///xxxxx/Documents/Application.sqlite options:{