Tag: xcode

Access UITableView cell and swipe between them from DetailView using XCode 4

I’m making my first app and I’m using XCode 4 with a Storyboard. Thanks to this place, lots of tutorials, Apple’s archives databases and a bit of me, I’m slowly getting the basics together. It’s an app populated from a plist. The plist is an array with dictionaries, the dictionarires containing stings with info about […]

NSURL errors with caret ^ in string

Attempting to get data on the S&P500 (symbol: ^GSPC) from Yahoo Finance. In playgrounds and scripts, the presence of a caret (^) in the string passed to NSURL errors with “Execution was interrupted, reason: EXC_BAD_INSTRUCTION (code=EXC_1386_INVOP, sub code=0x0)”. Xcode 6b6 and b7. Works fine with other ticker symbols (AAPL, MSFT, etc). Any suggestions for how […]

1st ViewController in Portrait and SecondViewController in Landscape Mode

My requirement is this my 1st viewcontroller open in Portrait mode only.and when user goes to 2nd viewcontroller i want that controller in Landscape mode how may i do this i tried this code 1st ViewController.m – (BOOL)shouldAutorotate { returnc YES; } -(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { return UIInterfaceOrientationMaskPortrait; } -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface { return (interface==UIInterfaceOrientationMaskPortrait); } […]

Sending “NSString *_strong*to parameter of type _unsafe_unretained id* ”change retain/release properties of pointer

Im getting the following error Sending “NSString *_strong*to parameter of type _unsafe_unretained id* “changes retain/release properties of pointer … in the following line: [theDict getObjects:values andKeys:keys]; Im trying to add an address from contacts to my app. Could someone explain to me what its complaining about? I think its an ARC issue, possibly to do […]

Align text fields using dynamic constraints

I’ve been learning how to make iOS apps, and have come across a minor annoyance. I can’t find an easy way to align my text inputs. Looking at the below screenshot, you will see that I’ve managed to align my text fields, which is what I want. However, I did this manually by changing the […]

committing project to source control in Xcode

In Xcode 4, order to commit the entire project(all source files) to the source control repo, does one have to select all the files in the project navigator(Cmd-A) or is is it sufficient if I select just the Project file at the top and then File->SourceControl->Commit?

xcode update from 4.5.1 to 4.6

Hi I am new to Xcode and wondering how do I perform an update from v4.5.1 to v4.6. Is it necessary to uninstall the current xcode on my Mac in order to upgrade my xcode?

My player stops after playing first song

I am using AVPlayer when i select multiple songs from my ipod library ,those selected songs are displayed in a UITableview called playlistTableView as soon as the first song plays out it doesnt continue with second song .. I want the player to continue playing songs till there are no songs left in playlistTableView .

How do I add a custom view to iPhone app's UI?

I’m diving into iPad development and I’m still learning how everything works together. I understand how to add standard view (i.e. buttons, tableviews, datepicker, etc.) to my UI using both Xcode and Interface Builder, but now I’m trying to add a custom calendar control (TapkuLibrary) to the left window in my UISplitView application which doesn’t […]

Swift 3: Image does not show when setting isHidden=false

I followed a tutorial about how to create an iOS app where a title image and a background image are shown once a button is hit (there are checked as “hidden” in the attribute inspector). I am using Swift 3 and Xcode 8. That’s what the code looks like: import UIKit class ViewController: UIViewController { […]