Tag: ios

iOS 9 Xcode 7 – Application appears with black bars on top and bottom

Installed the app on iPhone 6 iOS9 and here is what happened. Notice black bars on top and bottom. It works just fine on iOS8. How I can fix it? I’ve tried building with Xcode 6.4 & 7. Same result. (iPhone 5 used to run iPhone 4 apps like this)

Is there a way to use my Rust library from Swift?

I am aware that this question has been asked before (nearly 2 years ago though), still, I’d like to encounter if there are any new methods or articles on this. I couldn’t find anything and am kind of a newbie to C-bridges, so that didn’t help me either.

How to implement real-time communication between iOS app and server in Swift?

I want to create the application which can add, edit the user. If the user already exists and the user enters in the office then camera device detects the user and match the user picture with the picture already stored in the server. If the user’s match is found on the server then it will […]

How can I create different amount of uilabel in each uitableview row with uitableviewcell?

I want to create different numbers of UILabel in one Row in UITableViewCell, but I really do not know how to do it. If I use the property of UITableViewCell and it will be showing just one UILabel in a Row (im using dynamic prototype cell.), and If I create each label in “cellForRowAtIndexPath” method […]

UIImage: Resize, then Crop

I’ve been bashing my face into this one for literally days now and even though I feel constantly that I am right on the edge of revelation, I simply cannot achieve my goal. I thought, ahead of time in the conceptual phases of my design, that it would be a trivial matter to grab a […]

UIWebview not openning the Installed Application but opens in safari

I’m using a UIWebview and I had loaded an URL which shows an alert to open the native Application that has been installed on my iPhone. On clicking the alert the application doesn’t open in UIWebview but when I test the same URL in safari it works perfectly. Please let me know whether I have […]

Any way to pre populate core data?

I’ve been creating a list app and backing it with core data. I would like to have a default list of say 10 airport’s items, so that the user doesn’t have to start from scratch. Is there any way to do this? Any help is appreciated. Thanks in advance.

Creating a blurring overlay view

In the Music app of the new iOS, we can see an album cover behind a view that blurs it. How can something like that be accomplished? I’ve read the documentation, but did not find anything there.

iOS: How to store username/password within an app?

I have a login-screen in my iOS app. The username and password will be saved in the NSUserDefaults and be loaded into the login-screen again when you enter the app again (of course, NSUserDefaults are permanent). Now, the user have the possibility to disable the username/password saving feature. So the NSUserDefaults will be cleared then. […]

Status bar and navigation bar issue in IOS7

I am migrating my application to iOS 7. For handing the status bar issue I have added this code if([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0f) { CGRect frame = self.navigationController.view.frame; if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { frame.origin.y = 20; } else { frame.origin.x = 20; } [self.navigationController.view setFrame:frame]; } This is working fine in normal case. If […]