iphone

Memory Leak with NSFetchedResultsController objectAtIndex

Hello, I have a memory leak while using NSFetchedResultsController objectAtIndex: The stack frame is as follow: 0 CoreFoundation __CFDataAllocate 1 CoreFoundation __CFDataInit 2 CoreData -[NSSQLCore _prepareResultsFromResultSet:usingFetchPlan:withMatchingRows:] 3 CoreData -[NSSQLCore _newRowsForFetchPlan:selectedBy:withArgu...

UIView underneath Status Bar

Hi i have a strange issue after adding my UIViewController.view to my Application Window. I created a window based app and added my view in my appDelegates didFinishLaunchingWithOptions method. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { overviewViewController ...

Blank black screen when running my iPad App

I've run into a sort of roadblock with my iPad app. I apparently made some unrecoverable change to my code recently and now it will only launch with a black screen. It displays the LoadingImage for a split second and goes right to black. In an effort to streamline what sort of problem I'm looking for, I'd like some advice on where shoul...

Strange behaviour of UITableView scrollToRowAtIndexPath:

I have to set an initial scroll position of my UITableView to a row other than the first one (for example, the first row of the second section). In my view controller's viewDidLoad I write: - (void)viewDidLoad { // self.view is a container view, not UITableView [super viewDidLoad]; [table scrollToRowAtIndexPath:[NSIndexPath...

Gesture through Transparent png on iphone

hey is it possible to get hand gesture through a transparent png, in object c? i need to make it possible to zoom on a mapview, but through an imageview, containing a transparent png. iv tried to illustrate this: .png the white in the middle being the mapview underneath the png. anyone know the solution to this? ...

TTTableViewCell height problem - Three20

Hi all, I am trying to subclass TTTableViewCell in my Three20 app, and I would like to change the height of the cell. However, I am having major issues. I am using self.variableHeightRows = YES; in the class which call my TTTableViewCell class. Does anyone have any idea how to change the height of the cell? The doc for this is almo...

Really strange behavior when trying to implement touch events

I'm working on my first iPhone application, and I'm getting some very strange behavior when I try to implement touch events. I set up touchesBegan:withEvent: and its sister methods under a subclass of UIViewController, but they aren't registering. What's even weirder is that when I try using touches on the simulator while running the c...

Using NSFetchedResultsController Without UITableView

Is it wrong to use an NSFetchedResultsController purely for data management, i.e., without using it to feed a UITableView? I have a to-many relationship in a Core Data iPhone app. Whenever data in that relationship changes, I need to perform a calculation which requires that data to be sorted. In Apple's standard Department/Employees ex...

anyway to delete all <a href=> tags with javascript after the page loads on an iPad?

I know that I can run a line of javascript code after the page loads on an iPad with UIWebView (which is what I am using), but I do not know what I could type to go through and remove all of the tags. I also would like to be able to do this to only certain parts of the page e.g. only remove tags within a certain tag. ...

How to pass double[][] into a method call?

Hi I am trying to init an object with a double value in the format double filter[3][3]; but i keep getting the following error. cannot convert 'double[3][3]' to 'double' in assignment. in my header i have this @interface filter : NSObject { double **matrix; } @property(nonatomic)double **matrix; -(id)initWithMatrix:(double**)filte...

a race condition or not? delegates & multiple threads

Hi all, I'm puzzling over how multithreading can work with delegates. The main thread has an object "A", which has created an object "B". Object "A" is the delegate for object "B". Object "B" uses a thread to run the code. When object "B" wants to notify the delegate, it does: [[self delegate] performSelectorOnMainThread:@selector(di...

Downgrade iPhone/iPad app to iPhone-only XIB

I recently converted my iPhone app to be for iPad as well by right-clicking on the target and selecting "Upgrade Current Target for iPad". Then, every time I opened the app with the iPad simulator, it opens the newly created MainWindow-iPad.xib. However, I ran into problems, so what I'd like to do is "downgrade" the iPhone app so it onl...

iOS4 and iTunes Connect

I ran across a very strange issue today when trying to upload an update to iTunes Connect for an app that I am "certifying" as iOS4 capable. Keep in mind that this is my 6th update for this app and I have never had to do this before (and I know this question typically falls under the n00b category, but bear with me here). Apple kept re...

Is it worth only supporting the iOS 4 when making an iPhone app?

If I am creating an iPhone app, is it worth trying to make sacrifices with functionality (e.g. with MPMoviePlayer) in the application and support previous versions of the OS? Are the majority of iPhone users running iOS 4? Will I lose out on a big portion of the market if I only support iOS 4? ...

IPhone: NSHTTPCookie wont set

I do this, but the new cookie doesn't show up, just some other cookies that are already set. What's wrong? [[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways]; [[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookie:[NSHTTPCookie cookieWithProperties:[NSDictionary dictionaryWithObjectsAn...

how to pass a double with [n][n] values into a method

Possible Duplicate: How to pass double[][] into a method call? Hi I am trying to init an object with a double value in the format double filter[n][n]; but i keep getting the following error. in my header i have this @interface filter : NSObject { double **matrix; } @property(nonatomic) double **matrix; -(id)initWithMatri...

Openfeint 2.4.10 eating CPU usage.

Hello everyone, i noticed that openfeint is eating up my iphone cpu usage. My game slowed down after i updated to the latest openfeint. I ran the instruments cpu sampler and it showed that that openfeint was eating up to 65% of the cpu usage and that made my game very unresponsive. Anyone else noticed that as well? ...

UITableViewCell in iPhone 4 and iPhone 3G/GS

Hi all, I am creating a custom UITableViewCell class in my iPhone app, but I am unclear how to state the dimensions given that the iPhone 2G/3G/3GS and iPhone 4 have different resolution screens. Clearly, when I programmatically add an element, I'll use calculated coordinates based on the screen resolution, but when I am in interface...

How can I get the iPhone's current network speed?

I want to get the iPhone's network speed so that I can give user an info when the speed is too slow. ...

hexcode for images in iphone

is it possible to store image in the form of hexcode to database as i have my database loacally now my app is working fine but still i am calling images from web as i cant store all images to locally so whats the best way to call those 2000 images?? directly form web or some encoding ?? ...