ios7

iOS7: Can we use other than Helvetica Neue fonts with Dynamic Type?

北城以北 提交于 2019-12-20 10:01:42
问题 We are designing an app for iOS7 and our designer wants to use non-default font (Avenir), but I dont want to loose Dynamic Type functionality. As I understand Dynamic Type can only be used with default system font, which is Helvetica Neue. Is it possible to use other fonts or at this moment it's not an option? 回答1: As far as I understood [UIFont preferredFontForTextStyle:] returns a font with fixed size for a particular font style regardless of text view default size. I expect that changing

Animate a UINavigationBar's barTintColor

自古美人都是妖i 提交于 2019-12-20 09:55:41
问题 The app I'm working on changes the barTintColor of its navigation bar when pushing new view controllers. Right now we set that colour in the destination view controller's viewWillAppear: method, but we have a few issues with that. With the way we're doing this right now, the navigation bar's colour changes abruptly, while the rest of the bar content animates as usual. What I'd like is for the bar to fade between the source and destination colour. Is there any way to achieve this with public

AES256 Encryption/Decryption Error+ IOS SDK 7

爱⌒轻易说出口 提交于 2019-12-20 09:55:41
问题 I am using AES256 for security and store data in encryption form which is working fine in IOS 6 and below but when i have tested my app in IOS 7, I am not getting my data which was store previously. After debugs, i found decryption is not working is IOS 7 and return blank. My Code as below: - (NSData *)AES256DecryptWithKey:(NSString *)key { // 'key' should be 32 bytes for AES256, will be null-padded otherwise char keyPtr[kCCKeySizeAES256+1]; // room for terminator (unused) bzero(keyPtr,

How would I begin to replicate the custom view controller transition Apple uses as the default in iOS 7?

亡梦爱人 提交于 2019-12-20 09:35:35
问题 Using iOS 7's custom view controller transitions, I want to achieve a visual effect similar to Apple's default view controller transition in iOS 7. (The one where you can slide to pop a view controller off the stack by sliding it from the left to the right, where the top view controller slides off the top of the other with a shadow and the navigation bar shifts.) I'm having a great deal of difficulty implementing this, though. Most of the tutorials on custom view controllers go with very

iOS 7 Core Bluetooth Peripheral running in background

烈酒焚心 提交于 2019-12-20 09:03:22
问题 What I want is for my iOS device to be advertising a Bluetooth LE service all the time, even when the app isn't running, so that I can have another iOS device scan for it and find it. I have followed Apple's backgrounding instructions here: https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/PerformingCommonPeripheralRoleTasks/PerformingCommonPeripheralRoleTasks.html#//apple_ref/doc/uid/TP40013257-CH4-SW1. I can get it to advertise in

iOS7 Custom ViewController transition and Top Layout Guide

一笑奈何 提交于 2019-12-20 08:59:23
问题 I implemented a custom UIViewController Transition in my App, which replaces the navigation controllers built in push animation. Everything works so far, except the toplayoutguide in the newly pushed view controller is 0 although the new view controller inherited the navigation bar from the old view controller. It should be 64.0 (Statusbar height + Navigation bar height), where it is 0.0 now. So all objects, which are attached to the top layout guide in the storyboard now appear 64 points too

Inequality Constraint Ambiguity

眉间皱痕 提交于 2019-12-20 08:41:14
问题 i've a problem in resizing a UIView with Autolayout and constraints. I'd like to change the origin (less than or equal of original) and the width (greater than or equal of original) but I got this: Inequality Constraint Ambiguity Do you have idea for solve this? thanks 回答1: I tried to make more than 1 vertical spacing constraint shrink for 3.5" displays, so I had to make 2 constraints between components that I wanted to shrink on smaller screen. One constraint was inequality (greater or equal

iOS 7 SDK not abiding background audio

人走茶凉 提交于 2019-12-20 08:21:37
问题 I have done a lot of research, both on Google and StackOverflow. All the answers I found do not work in iOS 7. I started writing fresh app in iOS 7 SDK with Xcode 5. All I'm trying to do is play audio in the app from a file stored in the app bundle (not from the Music library). I want to have audio played in background and controlled when screen is locked (in addition to Control Center). I set the APPNAME-Info.plist key, UIBackgroundModes , to audio . It is not handling things in the app

What to name images for iPhone 5 screen size?

ε祈祈猫儿з 提交于 2019-12-20 08:04:00
问题 What is the new naming convention for images for the 4-inch retina display? For an image named background.png you add @2x to the name ( background@2x.png ) to tell iOS to use that one for devices with the retina display. What would the suffix be for iPhone 5's screen size? 回答1: You can use my #define s to help you with these images: #define isPhone568 ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone && [UIScreen mainScreen].bounds.size.height == 568) #define

UITableViewCell doesn't get deselected when swiping back quickly

六眼飞鱼酱① 提交于 2019-12-20 08:03:47
问题 I've now updated three of my apps to iOS 7, but in all three, despite them not sharing any code, I have the problem where if the user swipes to go back in the navigation controller (rather than tap the back button) quickly, the cell will remain in its selected state. For the three apps, one uses custom cells created programmatically, another uses custom cells created in a storyboard and the third uses default cells in a very basic subclass of UITableView, also in a storyboard. In all three