I have noticed some significant changes to iOS bluetooth low energy connection interval and allowed packets per interval. I'm using a maker ble device to transmit sensor data at high rates, quick connect and disconnect because the user comes in and out of range frequently. I can request connection interval updates peripheral side and have done some timing to see how many packets are transmitted per interval. iOS 8.1 seems to allow connection interval of 18.75 ms with 7 packets per interval.iOS 8.3 seems to allow connection interval of 15.0 ms with 3 packets per interval.I want to transfer 100 notification packets, with the above info my transfer is roughly cut in half!!iOS 8.1 takes approx .267 seconds (100/7*18.75 ms)iOS 8.3 takes approx .5 seconds (100/3*15 ms)I watched a protocol trace with my Apple Watch connecting and it showed a connection interval of 30 ms and during high data transfers as many as 7 notification packets per interval (Handoff in action!)Anyone else requesting a connection interval updat
Search results for
SwiftUI List performance
50,605 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
https://devforums.apple.com/message/1130381#1130381I had the same problem as description on the above link. I applied the solution about removing armv7 from valid architecture on both iPhone and Watch extension app, Then did the following steps:Build & run your iOS app in the simulator.Wait for it to finish launching, then hit the stop button in Xcode.Switch your active target to your WatchKit app, build, and run it.When the Watch app has finished launching, tap your iOS app's icon in the main simulator window.In Xcode's menu bar select Debug > Attach to Process.Select your iOS app from the list. Chances are you'll find it under Likely Targets.But xcode still display complain message waiting for attach, I would be very appreciate it if someone could help.Thank you ( :
Hmm... I just had the thought of marking the method as throws, and then having the default implementation throw a particular error (and then using that to provide the optimized case). Any idea what type of performance the new error handling methods provide? (I know obj-c exceptions had poor performance, but swift may have a swiftier model...)
Topic:
Programming Languages
SubTopic:
Swift
Tags:
You mean the user should be able to perform some customization of something at runtime (dynamically)?
Topic:
Programming Languages
SubTopic:
Swift
Tags:
There is a subtle trick going on under the covers here. When you create a AVAudioUnitTimePitch AU, what you get back is the kAudioUnitSubType_NewTimePitch audio unit, this is the same AU that is used when someone selects the kAudioQueueTimePitchAlgorithm_Spectral TimePitchAlgorithm property in the AudioQueue and as you correctly point out, equates to AVAudioTimePitchAlgorithmSpectral for AVPlayer.If you would like to use a different time effect, for example the kAudioUnitSubType_AUiPodTimeOther or if you're on iOS the kAudioUnitSubType_AUiPodTime -- you can do so by creating an AVAudioUnitTimeEffect using the initWithAudioComponentDescription:(AudioComponentDescription)audioComponentDescription method.Just pass in a AudioComponentDescription for the kAudioUnitType_FormatConverter type + SubType etc. and you have an object that can be used with AVAudioEngine wrapping the Audio Unit of your choice underneath. See AUComponents.h for a list of SubTypes.
Topic:
Media Technologies
SubTopic:
Audio
Tags:
Hi allI can't seen to find where I can look up my posts in these forums. I've tried activity' on the main menu and 'Activity' on my profile popup. Both just show me a list of everything. It makes it really hard to check back on posts I've made.Anyone know where to look?CiaoDerek
Hi there, this is the best place I could find to post it, please let me know if it should be posted somewhere else.I have four servers working great, named macminiserver1 though to macminiserver4. On client machines in Finder>network I see those listed as well as the other clients, Windows VMs, etc. but there's one entry that I'm curious about. There is a folder, called Servers, clicking on it reveals a folder named macminiserver.(company).(domain) and in there /Volumes/Home Folders/ which is empty and cannot be written to.Get Info shows I have unknown access and not much else.I'm sure this is a holdover from one of the server's previous lives, I did have mobile accounts with home folders synced to a server at one point and gave up as it was a buggy mess and converted them back to network accounts.How do I go about tracking down the source of this zombie server and deleting it? Finder gives an error when I try from there.Thanks!
I am having the same problem. Even if only the first layer of three blocks are selected they won't rotate as one but rotate individually.What mouse/keyboard combination am I missing to:1) Select multiple blocks so they rotate as one2) Rotate block(s) so they snap to 90 degree angles?Is there a definitive list of mouse/trackpad/keyboard actions that can be performed in the scenekit editor to pan/zoom/rotate objects etc?Many thanks...Robert
Topic:
Graphics & Games
SubTopic:
SceneKit
Tags:
Hi,Is it possible to modify value of default metadata for a file (let say value of kMDItemFSSize OR kMDItemPhysicalSize) ?Actually I want to display a virtual file icon in finder with some customized values of default metadata.Below is the list of default metadata for a file:kMDItemContentCreationDate = 2015-06-18 08:06:50 +0000kMDItemContentModificationDate = 2015-06-18 08:08:11 +0000kMDItemContentType = public.plain-textkMDItemContentTypeTree = ( public.plain-text, public.text, public.data, public.item, public.content)kMDItemDateAdded = 2015-06-18 08:08:11 +0000kMDItemDisplayName = test.txtkMDItemFSContentChangeDate = 2015-06-18 08:08:11 +0000kMDItemFSCreationDate = 2015-06-18 08:06:50 +0000kMDItemFSCreatorCode = kMDItemFSFinderFlags = 0kMDItemFSHasCustomIcon = (null)kMDItemFSInvisible = 0kMDItemFSIsExtensionHidden = 0kMDItemFSIsStationery = (null)kMDItemFSLabel = 0kMDItemFSName = test.txtkMDItemFSNodeCount = (null)kMDItemFSOwnerGroupID = 20kMDItemFSOwnerUserID = 501kMDItemFSSize = 3621kMDItemFSSiz
MarcWolf, Please have a look at your application list and see how many are setup for background updates. Also, you may want to try doing a restore of iOS 9 Beta on top of your existing install. If backup is working with iTunes you can optionally wipe and restore as well. Home at 76% is definitely not right. You very likely have some background data processes going on. Another thing to consider is how many and what type of email accounts do you have loaded? (IMAP, Exchange, Gmail, Yahoo etc.) Would you mind sharing that? Thanks!
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Swift programing Language Sample Code:for index in indices(greeting) { print((greeting[index]) )}XCode 7 Beta Complier report Error: cannot invoke 'indices' with an argument list of type '(String)' 'indices' is unavailable : access the 'indices' progperty on the collection
Representing a broken cup as nil, rather than an error or alternate state of some sort, seems like an inaccurate modeling of the situation. nil would generally represent no cups, or the absence of a cup. Writing a drink(fromCup:) method that accepts no cups to drink from would be confusing. So when you write that method, you'd specify the cup as non-optional, and avoid accidentally having thirsty users. Forcing API designers to decide things is more work for the API designer, but less work for everyone that wants to use that API correctly.In practice, what we've found is that each time we introduce stronger static verification like this in Objective-C (clang static analyzer, nullability annotations, generics, bridging annotations, printf format checking, the list goes on and on), it catches real bugs in shipping programs. Correctness is worth a little inconvenience, especially when it comes along with increased expressiveness.That said, if there are places that appear to be unnecessarily inconvenient
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Xcode 6.3.2 quits unexpectedly when submitting to iTunes StoresHello,It seems that everytime I submit to the app store, Xcode quits unexpectedly.Here's a screenshot of the Xcode Report Problem:So I have a valid distribution profile. I was able to archive. When I click the validate button, the archive was validated. But when I actually submit to the app store, Xcode just quits unexpectedly right when it starts Uploading ArchiveIs there anything I need to do before I make an archive in Xcode? Is it an Xcode 6.3.2 problem?Process: Xcode [3276] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 6.3.2 (7718) Build Info: IDEFrameworks-7718000000000000~2 App Item ID: 497799835 App External ID: 812404257 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Xcode [3276] User ID: 501 Date/Time: 2015-06-19 15:13:34.165 +0700 OS Version: Mac OS X 10.10.3 (14D136) Report Version: 11 Anonymous UUID: 7712FAC3-808B-7650-2B59-856F778E8370 Sleep/Wake UUID: 61663078-DBA5-4EFB-A
Suppose you have a protocol to describe types capable of performing some statistical sampling, as follows,public protocol Sampling: CustomStringConvertible { var size: Int {get} var total: Double {get} var minimum: Double {get} var maximum: Double {get} var mean: Double {get} var variance: Double {get} var standardDeviation: Double {get} mutating func updateWithNewValue(x: Double) }and a struct type that conforms to that protocol:public struct StatisticalSample: Sampling { public init() {} public private(set) var size = 0 public private(set) var total: Double = 0 public private(set) var minimum: Double = 0 public private(set) var maximum: Double = 0 public var mean: Double { return newMean } public var variance: Double { return newVar } public var standardDeviation: Double { if !cachedStdDevIsValid { cachedStdDev = sqrt(newVar) cachedStdDevIsValid = true } return cachedStdDev } public var description: String { return [sample size: (size), total: (total), min: (minimum), max: (maximum), + mean: (mean
Coding: Objective-CI can not send the application to Apple, I get this error when upload in Organizer.Closing xcode and i get this error.Can you help me?Thank u--------------------------Process: Xcode [5286]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 6.3.2 (7718)Build Info: IDEFrameworks-7718000000000000~2App Item ID: 497799835App External ID: 812404257Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [5286]User ID: Date/Time: 2015-06-19 10:25:04.073 +0300OS Version: Mac OS X 10.10.3 (14D136)Report Version: 11Anonymous UUID: Sleep/Wake UUID: Time Awake Since Boot: 7100 secondsTime Since Wake: 3300 seconds⚠Crashed Thread: 15 Dispatch queue: NSOperationQueue 0x7fb2c8a0bf50 :: NSOperation 0x7fb2c8bf5480 (QOS: USER_INITIATED)⚠Exception Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x0000000000000000Application Specific Information:ProductBuildVersion: 6D2105ASSERTION FAILURE in /SourceCache/IDEFrameworks/IDEFrameworks-7718/IDEFoundatio