iphone

Should I use Core Data or SQLite to represent a graph structure with weighted edges?

I am building an iPhone application that will be using a weighted graph (probably around 1000 nodes and 500-700 relationships, ball park estimate, could be quite wrong). Core data would be wonderful since it's easy to work with and is optimized for the iPhone. At the same time, the graph nodes need to be weighted. I could add a leve...

iOS Application Terminates After Exception Thrown in UITableViewDataSource Method

Having meticulously followed the examples and instructions in the Table View Programming Guide for iOS about the proper order in which UITableView delegate and data source methods are called, I thought I had a good idea of how to implement the “handshake” shown in Figure 7-1 and the list that follows, but apparently not. Here's the code...

MSN API for Objective-C

Hi, I would like to know whether if there is any Objective-C MSN API. I have searched for a while and could not really find one. And if not could somebody tell some good place to look to start the protocol from scratch. Some points on how to start with. I found this site mentioning details about the protocol. But still not sure how to...

Animating a UILabel background color when text change

Hi all, I have a UITableView and I have layout some labels for its rows. When the values change in the table (means text values changes inside the labels), I need to animate the UILabel's backgroundcolor( eg. Background color from red --> its original background color). Then users can clearly notice the values changed. As far as I und...

Apple demo iPhone app called SpeakHere won't respond to kAudioSessionOverrideAudioRoute_None

I was trying out Apple's sample app SpeakHere, and wanted to listen through the speakerphone speaker instead of the ear speaker. I was able to turn on the speakerphone speaker using this code: UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback; AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(sessio...

iPhone does not vibrate while recording

I am modifying the AurioTouch example. I want to vibrate the phone in response to particular sound inputs. I can detect the inputs and printf them, but AudioServicesPlaySystemSound(kSystemSoundID_Vibrate) doesn't do anything while the session is kAudioSessionCategory_PlayAndRecord. ...

Loading second view from first view not working -iphone

I have an appdelegate(.h,.m) and two view controllers - loginviewcontroller, searchviewcontroller On loginviewcontroller I have userid and password fields and login button. once login is verified searchviewcontroller view will be shown. I have loginsuccess function defined in appdelegate and it is being called from loginviewcontroller....

Remove an object in NSMutableArray?

I have a NSMutableArray like this: NSMutableArray *array =...; (array contain my custom object) NSMutableArray *toRemove = [array getObjectsToRemove]; But when I try to call removeObjectsInArray ( [array removeObjectsInArray:toRemove]; ) it breaks my app! Can anybody tell me how to solve my problem :( ...

Not able to install xcode_3.2.3_and_ios_sdk_4.0.2.dmg

Hi all, I have downloaded xcode_3.2.3_and_ios_sdk_4.0.2.dmg from apple website, after the download completed. I tried to install SDK, But when i double clicked on it i got small pop up stating "Warning" The Following disk images couldn't be opened the reason displayed over there is "Not Recognized". Can any one help me out. Thank You ...

Class cluster initialization

My iPhone app has an abstract class WorkingView. It is a subclass of UIView. WorkingView will in turn have a bunch of concrete subclasses. Two of those will be SimplifyView and MultiplyView. I am trying to write the method that creates new instances of WorkingView. This method should have the mode passed in and return an instance of...

move ActionSheet portrait to landscape mode iphone?

In my app button presents on navigationcontroller when I run app in portrait mode as well as landscape mode and clicked button due this it shows actionsheet according to their mode but when i clicked button in portrait mode and then truns the simulator in landscape mode and its also occur this same situation in viseversa form action shee...

GSRegisterPurpleNamedPort SIGABRT in UIApplicationMain Before App Delegate Gets to Run Any Code

We recently put an update out for one of our apps and many users told us that they could no longer run the app because it crashed on startup. We have been able to recreate the crash by building and running the previous release build onto a device and then building and running the new build overtop of it on the same device, but the stack...

Hide mobile safari keyboard when form submitted in Ajax application

I have a textfield which fires an event in a web app, but I'd like the keyboard to close when the use presses enter. Using jquery to disable usual subission. ...

Can I record a timestamp on my iPhone without going through the lock screen?

I want to use my iPhone to very easily create a timestamp whenever a certain event occurs (e.g. every time I cough). The goal is to build up a log file that can be analyzed later for trends. My iPhone is passcode locked because of my Exchange policy, so the steps to do this if I were to create a conventional app are as follows: Press ...

UITextField keyboard doesn't appear

I have a very simple screen with an UITextField with the default configuration, nothing special. When I touch the UITextField, the keyboard doesn't pops up. I haven't any custom control, behavior or anything else, just that, but it doesnt'work. I've done this in previous apps iPhone/iPad apps already on the AppStore but i can't figure o...

CATiledLayer drawing problems on iPAD.

I am developing an application on iPAD to display pdf. I am using CATiledLayer to draw PDF pages. at a time i am displaying only one page of the pdf.if user clicks next or prev button i am displaying the pages accordingly. I have subclassed the CATiledLayer to make fadeDuration as 0.0. I am facing 2 problems. 1. my application is work...

MPMoviePlayerViewController with controls set to MPMovieControlStyleNone

Hi, I want to use a MPMoviePlayerViewController with the control style set to: MPMovieControlStyleNone Now I need a way for the end user to close this MPMoviePlayerViewController window if they don't want to watch the whole video. I would like to have them double tap the screen and the MPMoviePlayerViewController would close. Any sug...

Draw Line in View : Not Drawing

I am trying to draw a line my Code is this -(void) drawRect:(CGRect) rect { NSLog(@"Reached Draw ARect Function"); CGContextRef ctx = UIGraphicsGetCurrentContext(); CGContextSetLineWidth(ctx, 2.0); CGContextSetRGBStrokeColor(ctx, 1.0, 2.0, 0, 1); CGContextMoveToPoint(ctx, 0, 0); CGContextAddLineToPoint( ctx, ...

Creating multiple relationships between objects

I have a core data model with 2 entities: Collection and Image. There's a one to many relationship between Colletion and Image, reflected by an 'images' accessor on the Collection side and a 'collection' accessor on the Image side. There's an additional relationship called keyImage, which is a 1:1 relationship between Collection and Ima...

How to prevent unsupported parameter combination on CGBitmapContextCreate?

In my iPhone app, I download images from a web site. I would like to resize and crop these before saving them, but CGBitmapContextCreate tells me that the images have "unsupported parameter combinations". I guess I would have to convert my images to one of the supported formats before using CGBitmapContextCreate, but how do I do that? ...