My tableview cell subtitles aren't showing when I use this: func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { var cell:UITableViewCell? if tableView.tag == 1 { guard let latestCell = tableView.dequeueReu
I'm trying to create and use a framework in iOS. It was working previously and it works on the simulator but not a newer iPhone 6. I suspect it has to do with the script, but from what I can see (I copied the script for the internet for the most part
How to navigate any controller from tab based application? I have created one navigation viewController and I placed tabBarController into navigationController. So my rootViewController is navigationController. when I navigate from my home view scree
I have 1 entity in my database "Message" with the values MessageID, messageText and i want to read every row of Core Data, make an object of my class "Message" and put the new object into an array. It's the first time I'm using Core Da
I've added UITextView as a sub view of UIAlertView, I've added UIToolBar with a Done button (using UIBarButtonItem) as inputAccessoryView to allow user to resign keyboard`. It's just working fine in iOS6.0. And not in iOS5.0. I've break point and che
I have issue in iOS 7 that does not appear in iOS 6. I have a navigation controller that is displaying another navigation controller to add an employee. This second controller is being presented modally. When I dismiss the second controller either wi
I'm parsing some HTML and I need to get all the innerHTML of <body />. I'm doing it this way: TFHpple *doc = [[TFHpple alloc] initWithHTMLData:[NSData dataWithContentsOfFile:sectionFilePath]]; TFHppleElement *body = [doc searchWithXPathQuery:@"
I've been using the fantastic [[UINavigationBar appearance] set... to set application wide appearances for my UI. However, I'm using the SKStoreProductViewController and want to remove all of my styling so that it shows the default Apple UI. Weirdly,
I have a ViewController in which the user selects a card (a custom UIButton) out of a UIScrollView. I have intercepted the touch event selecting the card and identified it, and then removed it from the data source, but it still exists in the UISubVie
I am trying to 'decorate' UICollectionViewCells using the Decorator pattern. For example, if I have a BaseCell : UICollectionViewCell I would like to be able to do something like this: BaseCell *cell = [[BaseCell alloc] initWithFrame] cell = [[Glowin
I am posting a post on facebook. I am able to post a URL but I also want to post some description with that URL. I am using it - NSString *shareUrlString = [NSString stringWithFormat:@"http://www.facebook.com/sharer.php?u=%@&t=%@", urlString
My app has custom UITableView cells. I want to show only one cell at a time - next cell should show partially. In ScrollView you can set isPagingEnabled to YES. But how can i do above in UITableView? ThanksNote that UITableView inherits from UIScroll
i am using the following code to catch an error when ind.row is not a valid value or sometimes it becomes nil @try { if(ind.row<[[treeNode flattenElements] count]) { [self.mTableView scrollToRowAtIndexPath:ind atScrollPosition:UITableViewScrollPositi
I have one table view and each cell has one button after pressing button, button image got change but if I scroll tableview then button image comes in previous state how to avoid this problem.Store in an Array the state of the button, and when the ce
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init]; (Value stored to 'dict' during its initialization is never read)You don't use 'dict'. You don't release 'dict' after you're done with it. It is leaked because you used 'alloc' to create
I try to save the sample buffer instead of an UIImage to an array, to convert it later on. This to speed up the image capturing and maybe not get memory warnings. I just can't figure out how to save it to the array and then use it again to call [self
In 'iPhone', how can I prevent a navigation bar from pushing down a subview? Thanks.I suppose that you want your view to be under the nav bar, then you should set wantsFullScreenLayout property of a viewController you push into nav bar to YES.
In order to get directions, Google provides this nice URL: Sample here... How can I use the information that Google provides to get the same direction line on a MKMapView in an app?You will have to either use a web view with a Google map, or draw on
I started off the project without Core Data and now I would like to add that functionality to my apps. How do I do this? What additional things does XCode sets up when you actually tick the Use Core Data when you create a new project?One trick is to
I'm developing an app for iOS4. The application is made of two main components, one that is supposed to run in the background and one that is constantly displayed on screen and takes data from the first one. Here's the problem: the first component wo
I have some code that returns a struct containing 2 objects (declared as id). When trying to use one of the objects I get an EXC_BAD_ACCESS and the app crashes. This only happens on the device (ipad) not in the simulator. I have set NSZombieEnabled t
My goal is to create an AdMob banner in my iPhone app. As a starting point, all I want to do is sucessfully run the example code provided by Google. I registered for an adMob account and got a publisher id. I download the sample code provided by Goog
so, I'm using the NSNotification to pass messages around as I get data from my server. The problem is that the notifications are not being responded to if the controller has not been "accessed" yet. What I mean is, in my app I have a SignInViewC
I need a registration page in my application which should appear only at the first launch of the application. I appreciate any help available . Thank you.Look into: NSUserDefaults (for saving and loading the registered info) - https://developer.apple
I've noticed a lot of examples for iPhone apps in the Application Delegate - (void)applicationDidFinishLaunching:(UIApplication *)application have [window addSubview: someController.view]; (1) as opposed to self.window.rootViewController = self.someC
i'm working in a little project. The idea is send information from mobile device to a server, then the sever performs some calculations and return a response to de device. I know how to do this using Sockets (directly), ut I was wondering if there we
All, This seems like such a simple thing, but I cannot find* the right method to create a UIDatePicker, in time mode, and have it initialized to a specific time. I don't want date -- just time (think alarm clock). I have created a NSDate object: NSDa
i have xcode 3.1.3 and xcode 3.2.1 installed For sure now I use 3.2.1 with Sdk 4 to develop new apps. But what if I like to test a App compiled with sdk 4 on a simulated iphone that would just have 3.0?? As BaseSDk i use 4.0 and as target 3.0 In xcod
I am new to iphone development.I am creating a map application. I have created tool bar with a button below the mapview.When i click the button it should display a alert view showing the current location and asking to update. on clicking OK in alert
Can you use the magic mouse to use the iphone simulator, and get like more than just two fingers on the phone simulator?Yes and no. You'll be able to use the simulator but not more than two fingers. Simple like that :) Edit: There might be some drawb