Search results for

smb big sur

11,741 results found

Post

Replies

Boosts

Views

Activity

Unwrapping UITextField String and converting it to Int with new syntax
With the latest Xcode update, we are required to update the syntax on some of our older apps. Whilst Xcode will guide us through it the results do not always work. Being fairly new Swift and Xcode this is a big preoblem for me. The simple code below has been converted to the new syntax: @IBAction func buttonPressed(sender: AnyObject) { var numberInt = Int(number.text) if numberInt != nil { var unwrappedNumber = numberInt! var isPrime = true if unwrappedNumber == 1 { isPrime = false }From the second line of this I am getting the error of Value of optional type 'String?' not unwrapped; did you mean to use '!' or '?' ?. I take the recommended action and change the line to: var numberInt = Int(number.text!)Then it tells me Type 'Int' has no member 'number'. i am really stuck. Can anybody help?
1
0
1.3k
Oct ’15
MapKit Overlay with kCGBlendModeMultiply
Hello everyone,I have a very specific use case with MKMapView. I generate a big amount of MKPolygons (about 15000) and render them on an overlay. To increase the performance I do following steps:1. add one single overlay to the map view which is of size of the wholeWorld2. In - (void)drawMapRect:(MKMapRect)mapRect zoomScale:(MKZoomScale)zoomScale inContext:(CGContextRef)context I check every polygon if it is contained in the current MapRect (because MapKit divides the map into tiles and renders them in parallel on different threads)3. If the polygon is present in the current rect I create a CGPath and fill it with associated color.Everything worked fine before I changed the blending mode to kCGBlendModeMultiply. After that, I observe some weird ad arbitrary rendering artefacts which I can not explain. I made a few screenshots to describe the problem:http://postimg.org/image/lzj1swss9/http://postimg.org/image/c0thsotyx/http://postimg.org/image/nbw5h20u1/Here is the code I use in - (void)drawMapRect:(M
0
0
337
Oct ’15
Fall back in the new version of iTunes Connect
I noticed that new version of iTunes Connect was online a few days ago.But I found two big fall backs in the new version.1. For some reason I don't want to sell one of my apps any more and want it not available on App Store. But the users who have purchased it should be able to download it from Purchased section in App Store. In old version of iTunes connect, this can be done by set the app's online date to a future date, for example: October 1, 2016But in new version of iTunes connect, this can not be done. In Rights and prices page, I have only choices of online and offline. If I set the app offline, users who have purchased the app can not see it in the Purchased section in App Store, and they can not download it either.2. Contact us feature is ridiculous now. Actually it will let you select the most relevant options from the dropdown menu, then finally show an answer which may not resolve the problem.How can it named as “Contact us”? Developers can not use it contact anyone. Actually it’s just a
0
0
145
Oct ’15
Swift Dictionary Error
I have a rather big Dictionary with words, and this builds just fine. However, when I run the code that's supposed to use words from this dictionary, I get an error from the dictionary. To be more specific; I get an EXC Bad Instruction error. It may be worth telling that my dictionary has probably over 600 words, and from what it seems it doesn't have any errors. What I discovered though, is when I tried to shrink the dictionary size by half it size it worked. Then I slowly started adding words again, until it hit (what I would guess) was around 350 words when I got the error. Then I again tried to remove the 350th words, so I was left with only 349 words - then the error was gone again - and my app ran fine.Any solutions to this? I have to store big amount of words, but I'm not sure what to use when I can't use dictionary. And may this really be the case? Do these dictionary have a max size?Answers would be greatly appreciated.
5
0
1k
Oct ’15
Reply to Swift Dictionary Error
This is pretty much the code I have: let myDictionary = [ Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replaceWord, Word:replace
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’15
Reply to Another wave of dev kits
I missed out on the second wave as well unfortunately. Perhaps I have better luck in the third wave? ;-) Else I will just wait till it get's released.I do like to comment on RLKingSoftware:but, it isn't for those who just want to play with the new hardware/softwareYes I agree if meant in the litereal way, just play and explore the device and just leave it with that, that would indeed be a big waste. On the other hand, if with play you mean experiment, I think it's really important. Playing is truly the beginning of creating something innovative and fun. You might not even create an app yourself but the experimenting alone can also bring a platform forward as it can inspire others. I do think the new AppleTV will be a great platform for casual games and I've been waiting for this since Steve Jobs announced the AppleTV as a hobby project.If you truly combine all the technologies at hand especially with CloudKit, amazing stuff can be build.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15
Reply to Mac won't boot after El Capitan install
Hi Max,Please excuse my bad English. I think in German forums , unfortunately, no help for my problem . I too have serious problems after the installation of El Capitan . As with many others, will not boot my computer . I've already tried to reinstall the software on cmd r . No chance. I would be very happy if you could help me . The big problem is that I have no backup . A data loss due to format would be the worst ... Thanks in advance !!! Greeting Sebastian
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15
Reply to Compilation stops at a certain file.
Yes, it is consitstently at the same file. It seems to be stucking at large .m files. After divided a big file to two sub-small files, the compilation managed to continue. However, the issue persisted as the compilation stopped again somewhere. After doing several division operations again, compilation went on by a little each time. Finally, the compilation sticked to the last file, reading Complilation 120 of 120 files. In fact, in addtion to dividing files, I had also simply unchecked many .m files from compilation list to check which files were stoppoing the compilation.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15
Reply to UIPopoverController issue with Split Screen feature on an iPad
In my case I want my viewcontroller to remain showing as a popover because It shows at a perfect size, when showing as a full modal on iOS9_splitmode it didn't look so nice on the iPad big height. If you want the popover to keep showing as a popover, instead of showing as modal full screen, you can implement the UIPopoverPresentationControllerDelegate.This is my code in Swift. I hope I don't forget anything://set the modal presentation as popover let vc : MyViewController = .... vc.modalPresentationStyle = .Popover //set the delegate of the popoverPresentationController if let popoverPresentationController = vc.popoverPresentationController { popoverPresentationController.delegate = vc }Now implement adaptivePresentationStyleForPresentationController. Basically what it does is ask you which presentation mode he should use once the size class has change. I return None to say keep using the same presentation, so it will still show as a popover.class MyViewController: UIViewController, UIPopoverPresenta
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15
Reply to App Thinning / Texture Atlas Clarification
If there is nothing actualyl compiling the images inside an atlas folder to an actual altas image (a big one, with many images in it), then it's not actually a real atlas and in such a case there is no value in using that approach at all, granted that using sprite atlases still speed up rendering due to the fact that the graphic rendering code and/or hardware still can render all that stuff in just one cycle etc etc. This needs to be sorted out. I'm not sure but I guess any OpenGL game/software would still benefit from using sprite atlases. Not sure about Metal based ones.Having said that, I didn't realize we can now create Sprite Atlases inside asset files. I'll try this out.On another note, iPhone 6 Plus still do not choose to render 3x images frmo 3x atlases even on iOS 9.0.2, if using the old way of atlases (folders ending in .atlas). That was a bug and it's still not 100% fixed... unless that works with atlases in asset files. I'll try this out.
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Oct ’15
Reply to push notification without sound on iOS9
I have te same problem ni sound in whatsup,viber or gmail incoming mails.Sometimes they do work sometimes not! Very frustrating as I am using these apps for communication as I am in home rental businesse.Facebook messenger as well no sound just fot a silent one while typing this.This is a big problem as we can miss a very important message,mail and we can get a bad review on pages that reciew customer service.Please apple fix this ASAP.Not good enough.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’15