iphone

Core Data crashed - a rarely happened error on the device

I got this crash log while querying an array of managed object, however, while running in the simulator it does not happen. Even in the device, sometimes it happens, sometimes not. Someone can explain to me why and what is the error? Incident Identifier: 0ED2BB7C-5E8F-483B-AE08-8DE2C14D0C23 CrashReporter Key: e24b9614a897f92ee13ce00b7...

Convert iPhone App to iPad App (Just The Easy Part)

I make a basic View-Based application for iPhone in XCode 3.2, but when I switch the emulator to the iPad, the application gets "framed" (not sure what the right term is): If I adjust the width of the View(s), it has no effect. I cannot adjust the width of the "Window" in Interface Builder (it's greyed out, and adding another Window t...

How to display an detail disclosure button for the rows in an UITableView in plain style?

How to display an detail disclosure button for the rows in an UITableView in plain style? I want that when a row is tapped, the next level in the navigation is pushed on the navigation stack. Is there a quick way to get this blue detail disclosure button in the cells? ...

How to dynamically build up the arguments for NSLog?

Example: I have a complex method that does a lot of stuff, and at the end I want to print a report with NSLog. NSLog wants a string, and then an arbitrary number of arguments. So lets say there are these possible values which can be logged: A B C D E F It can happen that -for example- C and D are not logged, but the whole rest. Ho...

How to check if UILabel is truncated?

I have a UILabel that can be varying lengths depending on whether or not my app is running in portrait or landscape mode on an iPhone or iPad. When the text is too long to show on one line and it truncates I want the user to be able to press it and get a popup of the full text. How can I check to see if the UILabel is truncating the te...

Can I sync an iphone running OS 4 with a PC running iTunes 9.2

Just downloaded the iOS 4 GM seed from the apple developer site. Apparently from what I've read, I can't install it unless I do a full restore of the Phone. If anybody knows of a way to do it without restoring would be part of this question. I normally sync all my music and stuff with my PC. Will I be able to restore my device and re...

cURL command to NSURLRequest

I want to convert cURL command: curl -F 'access=xxxx' \ -F 'message=Hello.' \ -F '[email protected]' \ https://example.com to a NSURLRequest. Can somebody please help me with this? ...

Texture2D implementation on iPhone problem

Im trying draw text using Texture2D but all I get is a big white square. What wrong? glPushMatrix(); glRotatef(rodar+30, 0, 1, 0); glEnable(GL_BLEND); tex = [[Texture2D alloc] initWithString:@"imm" dimensions:CGSizeMake(2,1) alignment:UITextAlignmentCenter fontName:@"arial" fontSize:5]; [tex dra...

How to refresh a UITableViewController or NSFetchedResultsController ?

Hi I have a little problem with my UITableViewController or NSFetchedResultsController. I am not sure which is the problem soure but I guess its the UITableViewController. As I said I use a NSFetchedResultsController to fill my data into a UITableViewController. The data is sorted by date and is also displayed in sections by date-year...

create jigsaw puzzle piece from an existing image on iPhone

How would one go about creating jigsaw puzzle pieces from an image on the fly. I want the application to get the images from the library and then create puzzle pieces around that. Any ideas? open source libs? ...

Why is XCode freaking out?? I.e., Xcode says methods & properties do not exist but they do!

XCode has been acting really, really strange recently. It is telling me that various classes' methods and properties do not exist - but they do! This is happening both with a custom class, and a Core Data class. I have declared all of the methods and properties, including all the necessary @synthesize calls, and have predeclared the clas...

How to sync CoreData and a REST web service asynchronously and the same time properly propagate any REST errors into the UI

Hey, I'm working on the model layer for our app here. Some of the requirements are like this: 1. It should work on iPhone OS 3.0+. 2. The source of our data is a RESTful Rails application. 3. We should cache the data locally using Core Data. 4. The client code (our UI controllers) should have as little knowledge about any network stuff ...

iPhone:Quattro Ads doesn't show their Ads?

Hello, I have integrated Quattro in my iPhone application to show their ads. Prior to that, i registered and got the files related to that. I am observing always Quattro Ads section in my application screen shows only the 'Test Banner Quattro Wireless', not like how Admob circulating various Ads. What is the problem of not showing any o...

Question regarding implementation of multi component dependent uipickerview

I am having trouble grasping the concept of multi component uipickerviews. I really would like to just OWN this subject. I would like to make a 4 component pickerview with components that are dependent on one another. The first component is being populated from an array from my db, and that is showing up fine. I have all of the other i...

How to message an object?

I am working in objective-C trying to write an iphone app. Background: There is a navigation controller managing my view controllers. My FirstLevelViewController on viewDidLoad creates a few SecondLevelViewController Objects, stores them in an array, and then loads them when various table cells are pushed. In addition, on viewDidLoad,...

Can't get insertion control in UITableView

I've searched all over the web, and my code seems to be nearly identical to everything out there, but I can't get my UITableView editing to work for inserting a row. When I click the edit button, all of my existing rows get the delete control, but I get no additional row for insertion. I'm pulling my hair out for what seems like it sho...

Issue with iPhone Keyboard Next and Input Field Focus

I am building a little registration page that is going to be accessed via an iPad at a sales office as a kiosk. When I first received the page from the web design company I noticed that the way they set it up was the labels of the input fields appear inside the field (like a watermark). The watermark is cleared out once you focus on the ...

UINavigationController: Simplest Example

I'm trying to do very simple example of a UINavigationController. Here is my code: - (void)viewDidLoad { [super viewDidLoad]; This next line works, or at least doesn't blow up. navController = [[UINavigationController alloc] initWithRootViewController:self]; self.title = @"blah"; PageOneController *one = [[[PageOneControlle...

Audio using Yeti Mic does not work on iPhone Simulator

I am following iPhone Core Audio Tutorial by Tim Bolstad. It works as expected. I can hear the audio successfully. But when I plug-in USB Yeti Stereo Microphone by BlueMic on my MacMini. It does not produce the sound anymore. Why is that? Thanks in advance for your help. ...

UIScrollView drag to right or left

Hi Guys I have a UIScrollView with 5 page. At last page, if I scroll to right I will display a new UIView. (If i scroll to left it will back page 4th ). So, how I can know UIScrollView is drag to right? Thank you ! ...