Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

swift

  1. C

    iOS Parse class not created through swift code

    I am experiencing an issue when I try to create a new parse class through swift. My code for creating a new class is the following: let query = PFQuery(className: "newClass") The issue is that a "newClass" class is not created in my Parse dashboard and I don't get an error message. And since...
  2. M

    Apple’s Software Quality Decline

    Apple’s Software Quality Decline. This is a nice read and the painful truth. http://mjtsai.com/blog/2014/10/11/apples-software-quality-decline/?utm_content=buffercf405&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer
  3. arkmannj

    iOS Classes, Structs & Memory Usage {Noob}

    Hello, I have what I think are 2 simple (noob level) questions. The First Question lets see if I am understanding this correctly. 1) I declare / create 1 Class and 1 Struct 2) Within the Class I Instantiate the Struct 3) Later, all references to the Class are removed 4) Swift removes the...
  4. santoshkc

    iOS Dismissing of UIImagePickerController dismisses presenting view controller also

    Hello, I am working on a project that uses tabbar system. One of the item of tabbar is JobPostingViewController. I Embed it in UINavigationController. There is a UIButton called add new job in this view controller .I implemented pushviewcontroller to go CreateJobPostViewController. There I need...
  5. P

    iOS How can I move a GMSMarker like uber app car object?

    I'm working on a project in which I need to move my GMSMarker on map like uber app does. The problem I'm facing on crossroads were I need to change the heading as well as bearing(rotation) at the end of road. I want my marker should move like: Car first move P1 to vertex point(meeting point)...
  6. BeefCake 15

    Taylor Swift versus YouTube

    Taylor Swift is on a new adventure to take on the Tube! http://edition.cnn.com/2016/06/21/entertainment/taylor-swift-dmca-youtube/index.html
  7. arkmannj

    iOS Are there any basic REPL apps that run on iOS?

    As I am learning Swift, I find it would be nice if I could practice and run through concepts when I have down time "on-the-go" without my laptop. I know that in Mac OS X (er... OS X....er Mac OS :-p) I can use Playground, and can even use the terminal. Also, I know that Apple is developing...
  8. 9

    macOS Any Tips on Core Animation books with Swift and Mac Only...

    Hello Guys, do you have any tips for CA books for Mac (swift programming language). I have checked the offers on Amazon also googled it but it seems that there are plenty of books for iOS but the not for Mac...
  9. Analog Kid

    iOS simd documentation? Preferably for Swift...

    Is there any documentation available for the simd.h library that Apple advertises alongside the Accelerate Framework? I don't think it's part of Accelerate, but the last few WWDCs have discussed it in the same session. I can get to the header files, which are better than nothing, but it would...
  10. arkmannj

    iOS XCode Noob Question: IB linking to Code

    Hello, I am just starting to learn Swift and XCode, and I had a quick question. I'm just learning about linking items in the Interface Builder (From a storyboard or XIB) to code by Ctrl+Click & dragging from the item in IB into the code, where XCode then places some code beginning with...
  11. iosmike

    iOS How can I convert url into text file?

    In my app there is a webview. User can save any currenturl for later reading. And I have figured out how to save the webpage as text so users can review it when internet not available. But the problem is, how to get rid of all the <> tags ? I mean any web page.
  12. iosmike

    iOS Why my simulator iCould Drive is empty?

    I want user to access iCould to pick documents. But in my simulator the iCould Drive is always empty. I already clicked Simulator - Debug - Trigger iCould sync after logged in when the app was running. So I want to know if something wrong with my code. Please help to check. Thank you for your...
  13. iosmike

    iOS How to add a file n iCloud to an array?

    In my app I need to pick a file from iCloud and put it in an array. But I have no idea how to grab the file picked. Please see my code below and help to finish. Thank you for your time! For iCloud, I picked key-value storage and iCould Documents import UIKit import MobileCoreServices...
  14. iosmike

    iOS Best option for iOS Apps to access Google Drive

    I need my app to enable users to access iCloud, Google Drive and Dropbox, etc. I have done research and got information below. Which is the best option for my app? 1. Set up Google Drive API for iOS, set up iCloud, etc one by one 2. I have set up Firebase for mp app. I read some...
  15. iosmike

    iOS Google Drive API for iOS Swift

    I followed the Google Drive API for iOS Quicstart and created a sample project, everything works ok. But when I did exactly the same thing to an existing project and ran on simulator. On simulator screen it shows: The operation couldn't be completed. (com.google.HTTPStatus error 401). In...
  16. iosmike

    iOS How to retrieve data from Firebase?

    I am trying to retrieve every object stored in Firebase. Not sure how to go ahead. The following is my code and snap.value printed. I need to retrieve String "cbc" and "cp24" as well as values for datesaved and url. "cbc" and "cp24" are names I entered when saving. My code...
  17. chrono1081

    iOS Can someone please explain this Swift syntax to me (NSURL(string...) )

    Hi guys, I'm hung up on some Swift syntax that I'm not sure why it is the way it is: if let url = NSURL(string: "http://www.google.com")! I get that it has a ! because the init method returns an optional, but what is the "string: " for? Is it just an explicit parameter name? I was under the...
  18. M

    iOS General questions regarding Swift

    I came from C# development and even though I've been spending the past few months looking into iOS development and know enough to keep me busy for a while, all I've ever seen is people putting code directly into the ViewController leading to a fat controller. My coding experience has led me to...
  19. M

    iOS No Error message in the debugger area in Xcode7.2 swift, only "(lldb)" is displayed

    Currently, I am working on my first app, the app crashes showing this error message[http://i.stack.imgur.com/Hf5Ce.png] and only (lldb) is displayed in the debugger area. I have attached the backtrace below. Please help me out. lldb) bt * thread #1: tid = 0x8e27, 0x000000010d581fed...
  20. M

    iOS Cannot call value for non-function type element ('aka' (key:anyobject ,value:anyobject)..

    How to resolve this error? I am new to programming and got totally struck with this error in all llines of code attached below videoObj.videoid = video("snippet.videoid") as! String videoObj.videoTitle = video("snippet.title") as! String videoObj.videoDescription =...