ios8

Behavior changes for updateViewConstraints in iOS 8

喜你入骨 提交于 2020-01-01 10:41:28
问题 I notice some small graphical glitches while testing one of my app under iOS 8: some UIViews elements are not in the right place, others have not the right size. In a first step, I use storyboard, Auto-Layout and constraints. Then I programmatically tune constraints to perfectly suits devices' screen size, using updateViewConstraints . Perfect on iOS 7 but with some glitches on iOS8 as on following picture: ./Users/dominiquevial/Documents/Informatique/Dev/Novae Marathon/_log/captures/iOS8 -

Behavior changes for updateViewConstraints in iOS 8

自古美人都是妖i 提交于 2020-01-01 10:40:23
问题 I notice some small graphical glitches while testing one of my app under iOS 8: some UIViews elements are not in the right place, others have not the right size. In a first step, I use storyboard, Auto-Layout and constraints. Then I programmatically tune constraints to perfectly suits devices' screen size, using updateViewConstraints . Perfect on iOS 7 but with some glitches on iOS8 as on following picture: ./Users/dominiquevial/Documents/Informatique/Dev/Novae Marathon/_log/captures/iOS8 -

Self-Sizing (Dynamic Height) Cells in iOS 8 - Possible without Custom UITableViewCell?

ε祈祈猫儿з 提交于 2020-01-01 09:16:16
问题 Is it possible to self-size a UITableViewCell in iOS 8 without creating a Custom UITableViewCell? I thought that the standard UITableViewCell types (UITableViewCellStyleDefault, UITableViewCellStyleSubtitle, UITableViewCellStyleValue1, UITableViewCellStyleValue2) had built in auto layout constraints. This is confirmed by the fact that the constraints for non-custom cells cannot be changed in Storyboard. But when I use a non-custom cell of type UITableViewCellStyleValue1, set it up in

Self-Sizing (Dynamic Height) Cells in iOS 8 - Possible without Custom UITableViewCell?

↘锁芯ラ 提交于 2020-01-01 09:16:05
问题 Is it possible to self-size a UITableViewCell in iOS 8 without creating a Custom UITableViewCell? I thought that the standard UITableViewCell types (UITableViewCellStyleDefault, UITableViewCellStyleSubtitle, UITableViewCellStyleValue1, UITableViewCellStyleValue2) had built in auto layout constraints. This is confirmed by the fact that the constraints for non-custom cells cannot be changed in Storyboard. But when I use a non-custom cell of type UITableViewCellStyleValue1, set it up in

How to use size class to make app compatible to iphone 5, iphone 6, iphone 6 plus

放肆的年华 提交于 2020-01-01 09:15:18
问题 I am using size class for making my app compatible for iPhone 5, iPhone 6 and iPhone 6 plus. I am using compact width Regular height for this : Is this the correct way for using the xib or storyboard and making the other things leave on iOS ? Or, do i need to have some other things needed to be added ? It is showing perfectly in all devices without using Auto-layout. Do I need to do some more changes ? Do i need to add 3X images in my resource folder ? What is the best way to do the same ?

iOS8 and BTLE | CBCentralManager unable to find peripherals

南笙酒味 提交于 2020-01-01 09:05:08
问题 I have an iOS app that is connecting to a device (arduino) using a BTLE. Everything is working fine on my iPad iOS 7. After upgrading to iOS 8, the CBCentralManager is not finding any peripherals. - (void)startScanningForSupportedUUIDs { [self.centralManager scanForPeripheralsWithServices:nil options:nil]; } I don't know what can be the problem. 回答1: I have the solution, for some reason in iOS 8 there is some delay after instantiate your CBManager. You need to start to scan when the

Xcode 6 / iOS 8 Simulator Data and Bundle folder script

柔情痞子 提交于 2020-01-01 08:43:48
问题 With the latest changes to xcode 6, it looks like the .app file and document folder no longer resides in the same folder in the iPhone simulator directory. Previously, we can access the directory and .app file at /Users/me/Library/Application Support/iPhone Simulator/7.1/Applications/SomeCrpyticNumber but in Xcode 6, the simulator directory is completely different: ~/Library/Developer/CoreSimulator/Devices/CrypticNumber1/data/Containers/Bundle/CrypticNumber2/MyApp.app and ~/Library/Developer

Formsheet ios 8 constraints are same as iphones constraints

百般思念 提交于 2020-01-01 08:43:13
问题 I have this problem where formsheet in ios 8 is taking the constraints set for "compact - width regular -height" (that is all iPhones constraints) instead of "any- any" or "regular -width regular -height". I have two different design for iPhone and iPad since the formsheet is consuming iPhones constraint iam not able to achieve the same. Any help on this would be aprreciatd 回答1: From the UIViewController class reference: In a horizontally regular environment, a presentation style that

How do I subclass a variable with an IBOutlet?

江枫思渺然 提交于 2020-01-01 08:05:48
问题 All descendants of my specific class are to have a UILabel instance variable. So in my parent class I have var label: UILabel . I want to have it in the sublclass as well, but as an IBOutlet . How do I do this? I added the IBOutlet of the same name, and added weak to both variable declarations. But I get an error about "Cannot override with a stored property". How should I be doing this? And is it possible to not have to instantiate the superclass' version as I just want it for subclassing?

How do I subclass a variable with an IBOutlet?

北慕城南 提交于 2020-01-01 08:04:07
问题 All descendants of my specific class are to have a UILabel instance variable. So in my parent class I have var label: UILabel . I want to have it in the sublclass as well, but as an IBOutlet . How do I do this? I added the IBOutlet of the same name, and added weak to both variable declarations. But I get an error about "Cannot override with a stored property". How should I be doing this? And is it possible to not have to instantiate the superclass' version as I just want it for subclassing?