iphone

Notify changes in property for Core Data?

The user will be able to add or change some value (property in my model with Core Data) in one view, when the user switch to another view, I want to show the newly added/changed value with an animation. Is there a way to get a notification that there has been a change or an update for a property with Core Data? ...

How to use getControlPointAtIndex function to rotate a UILabel in semicircle in iPhone

Hello all, I want to rotate a UILabel in semicircle. So what I am planning to do is use some timing function like CaMediaTimingFunction. I want to use getControlPointAtIndex method of CaMediaTiming Function so that I can get a set of points to rotate the UILabel. The points which I will get will help me in forming the frame for UILabe...

HTML5 AppCache in UIWebView

I'd like to make use of appcache in my native application on the iPhone. Though Mobile Safari supports appcache it seems that the UIWebView that you can embed in an application does not. I know with a bit of work, I could simulate some sort of appcache like functionality in my application, but this isn't good enough - I'd like access to...

Removing a UITabBarController's view causes an EXC_BAD_ACCESS exception

I'm trying to remove a UITabBarController from a window in my app by calling removeFromSuperview on the controller's view after adding it to the window previously. However when i do so and after it deallocates all the view controllers that are on the bar successfully, i get an EXC_BAD_ACCESS signal after an autorelease pool is drained. ...

iphone tableview with a lot of images

I have a tableview that displays a lot of images in the cells, and i am not quit happy about the scroll performance. My tableview is something like the photo app on the iphone. Does anybody knows why the iphone foto app scrolls so damn fast as if their's nothing on the screen. And does anybody has some tips/tricks to increase my perform...

A Label Entering From Top Animated to current View in iPhone Application.

How do I add a label which enters to my current view controller, Animating from top; i.e. like a slider, it should come on screen, I want to display details on it, i know [self.view addSubView:myNewLabel]; but it doesn't make any animation, I need animation. ...

How to access hyperlinks in PDF documents (iPhone)?

Is it possible to get access to "internal" links in PDF documents using CGPDFDocument, or other means? I'm building a simple reader app and would like to deliver my content in PDF form, but if I can't support links between pages in the doc this probably isn't going to work. This question is similar, but does not address the issue of ho...

Gradient trick changed in iPhone 3.0 SDK?

I'm using a trick to get gradient on my table cells. After I upgraded to the iPhone 3.0 SDK i noticed that the gradient highlighting, when I select a cell, no longer works. iPhone 2.2.1 iPhone 3.0 Here's the gradient code: - (void)drawContentView:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); UIColor *tex...

iPhone simulator not displaying error in 3.0, but displays in 2.0

I am working off a tutorial that has this line of code: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8004664411"]]; When the program is compiled in the 3.0 Framework and that line of code is run, nothing happens. However, if the program is build with the 2.0 Framework that line of code causes a popup to disp...

After displaying and dismissing the Modal View Controller UIImagePickerController my Cocos2d iPhone app doesn't see multiple touches anymore

I have an app where I display the photo chooser (UIImagePickerController) but after the user dismisses it only single touches are working. And I think I know the root of the issue, but I don't know how to solve it... Before I show the modal dialog the stack during a touch is as follows: ... #3 0x00074de0 in -[EAGLView touchesBegan:wit...

Why aren't UItableViewCell images loading until scrolling?

My code downloads images asynchronously using InternetImage in the tableview: cellForRowAtIndexPath: method by initializing a IntentImage with initWithURL and calling downloadImage. This code runs perfectly after scrolling down to a new cell UITableViewCell in the UITableView, but not before, even though the URL is correct in both cases....

iPhone SDK Copy File to Main System

Many thanks to @fabkk2002 who helped me adjust the Helvetica font on my iPhone to fully support Indic glyphs and rendering on my iPhone for an app I am creating. This leaves me with another problem. Now that I have adjusted the font on my phone, how will my users get the full support for the Indic font as well? I do not want to requir...

Reading audio buffer data with AudioQueue

I am attempting to read audio data via AudioQueue. When I do so, I can verify that the bit depth of the file is 16-bit. But when I get the actual sample data, I'm only seeing values from -128 to 128. But I'm also seeing suspicious looking interleaved data, which makes me pretty sure that I'm just not reading the data correctly. So to be...

SQLite insert query giving error after 246 records

hi everyone , need urgent help. i am trying to insert 1916 records in sqlite database in iphone, but after inserting 246 records i am getting an error "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error while inserting data. 'unable to open database file'' ". plz help me. is there any settin...

iPhone: initialize object in controller

I am very new to objective-c and having a problem to initialize an object in view controller. The problem I am having is that when setTemp method is called, "0" is printed on the screen instead of the value of cTemp I would like it to be. Can anyone help me on this problem? Below are excerpts of the code I have. SJT.h #import <Founda...

gcc-4.2 failed with exit code 1 iphone

Hi, I've seen this error with different variations on discussion forums but being a non programmer I'm not sure how to progress this. Basically I have code which I found to help me with changing the background colors of cells on a grouped uitableview. The code introduced a line as such: CGContextAddArcToPoint(c, minx, miny, midx, miny...

iPhone: Increase volume

Hi, I have got an audio file which is quite quiet. I'd am playing it using AVAudioPlayer, but I can barely hear anything, especially without headphones. Is there a way to increase the volume of an audio record? Thanks. ...

Security implications of storing a password in Settings.bundle and getting with CFPreferencesCopyAppValue

Hello, Apologies for the seeming obviousness of this question, but for whatever reason I haven't been able to find a definitive answer in the Apple documentation about where and how Settings.bundle password info is stored. My question: if I need to store some credentials for an app, and I use a Settings.bundle so that the password is en...

Can somebody give me a hand about this stacktrace in iPhone app?

Program received signal: “EXC_BAD_ACCESS”. (gdb) bt #0 0x30011940 in objc_msgSend () #1 0x30235f24 in CFRelease () #2 0x308f497c in -[UIImage dealloc] () #3 0x30236b78 in -[NSObject release] () #4 0x30a002a0 in FlushNamedImage () #5 0x30250a26 in CFDictionaryApplyFunction () #6 0x30a001a4 in _UISharedImageFlushAll () #7 0x30a007...

UIButton problem

I have an UIButton , in my application.. I want to show a selection of my button ... i am using this code [Button setHighlighted:YES]; But its not work.. Can anyone help me? Thanks in advance...... ...