iphone

Don't have the right syntax when comparing strings in iPhone

I am trying to compare the following values: gType = [[UILabel alloc]init]; if (gType = [NSString string:@"BUSINESS"]) { I get a warning that 'NSString' may not respond to '+string:' I am unsure what is wrong. gType is a value that I populate from a db query. Other text values from the same query show up fine in a UITableView, so...

Objective-C: Hierarchical passing of CoreData in NavigationController

Hi guys, I need some guidance with this issue I have. I have a navigational Controller, with the root controller making use of CoreData and an NSFetchController. Now, the root controller works fine. When I click on an item, hierarchically it should display the next UITable associating the values for the row in the previous root controll...

iPhone Objective-C Basic Example Question (about Properties)

Sorry I couldn't give a more descriptive title. My question (after looking at the code below) is what statusText is. Is it an IBOutlet or a UILabel? How does "@property (retain,nonatomic) UILabel *statusText" work? Does that statement mean that statusText is a property??? Thanks for answering. If there are any questions, please feel fre...

How does one properly cache/update data-driven iPhone apps that use remote databases?

My app is highly data driven, and needs to be frequently updated. Currently the MySQL database is dumped to an xml file via PHP, and when the app loads it downloads this file. Then it loads all the values in to NSMutableArray's inside of a data manager class which can be accessed anywhere in the app. Here is the issue, the XML file prod...

How to detect a two finger flick

I want to switch between a couple views with a flick gesture using two fingers. If anyone can tell me what I need to do please help. ...

How would I save a CGContext into an NSUndoManager

I want to be able to save a CGContext into my NSUndoManager using these methods - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint currentPoint = [touch locationInView:self.view]; currentPoint.x = currentPoint.x; currentPoint.y = currentPoint.y; ...

iPhone and Windows Active Directory

Is it posable to make an app that can connect to a Windows Active Directory Server and do something like create a new user account or disable an existing account or retrieve a status flag...? help me please...! What i actually want is that, my windows server has all the web services and database which is capable to run a web application...

Performance of memory operations on iPhone

Here's the code that I use to create a differently ordered array: const unsigned int height = 1536; const unsigned int width = 2048; uint32_t* buffer1 = (uint32_t*)malloc(width * height * BPP); uint32_t* buffer2 = (uint32_t*)malloc(width * height * BPP); int i = 0; for (int x = 0; x < width; x++) for (int y = 0; y < height; y++) ...

What is the smoothest audio API for looping iPhone sounds

I am trying to loop a 2 second sound continuously that I am using in my touchesMoved method and want to make it play continuosly and not stutter or stop because the user stopped moving their finger and also maybe fade the sound into itself smoothly. I have tried system sounds and AVAudioPlayer ...

Error: Incompatible types in initialization? (iPhone,Objective-C)

I'm getting the error on "float pos = [sender value];"...sender should be a UISlider that I set up in Interface Builder. ButtonViewController.m - (IBAction)slide: (id)sender { float pos = [sender value]; loadValue.progress = pos; } ButtonViewController.h @interface Button_Fun4ViewController : UIViewController { IBOutlet UIProgres...

Getting component values out of pixel data & iphone

Hi all, I'm developing an image editing application for iphone. I've seen many questions similar to mine, but couldn't find a relevent answer. I have generated the pixel data as, NSData* pixelData = (NSData*)CGDataProviderCopyData(CGImageGetDataProvider(originalImage.CGImage)); Now, i need to get the component values (alpha,R,G,B) fro...

How to initiate UIProgressView to a certain value?

Would it be in the .h or .m and how do I do this? ...

Monotouch framework in existing objective-c app

I would like to use my existing objective-c UI layer, but call on a few monotouch functions from objective-c. How can I do that? ...

how to maintain a local database in iphone

Hi, I am a software engineer concentrating on iphone application development and I own a developer license. Currently I am working on a project where i need to maintain a local database in iphone. Each time the application launches , the application should sync data from a remote server. The application should add/update/delete the local...

Creating image from an array of colors in iphone

I have array with colors as its objects. I want to create an image out of it. Actually, what is happening is , i'm taking the pixel value of each pixel of an image, modify it and store in a mutable array its object. Now want to draw an image from this. How to do that?? ANy idea??? -(UIImage*)modifyPixels:(UIImage*)originalImage { NS...

Is is possible interact with Safari on the iPhone, beyond just opening a URL?

Is there an API or something similar for interacting with Safari on the iPhone? For instance, is it possible to create or read bookmarks? ...

Google Analytics

Hi all, i am using google analytics in my app,i want to know how to disptch data.GANTracker has method called dispatch().It will dispatch by itself or we need to dispatch data.If we have to dispatch data using http,then what is the format of dispatching data. ...

Sorting Numbers ins a Object.

Hi I have an NSMutableArray of objects, let's say 'Person' Objects. I want to sort the NSMutable Array by person.savings i.e if suppose person having savings 1000,1050,500,1200,2000,1050 i want the Array in the ascending order. Thank You. ...

How to remove ads when user buys in-app purchase

I have an app that I want users to be able to pay a small fee to remove ads from. I figure the best way to do this (the app needs to remain free) is via an in-app purchase. I'm wondering however the best way to go about removing the ads and how to do it once the user has bought the upgrade. Any help or advice would be great thanks. ...

Add certificate button missing in iPhone Programme portal.

Add certificate button missing while CSR generation in order to submit iPhone developer CSR. Programme portal -> certificates -> Development , tab is not showing Add certificate button or any way to upload the CSR. instead of this i got two button saying i) *If you do not have the WWDR intermediate certificate installed, click here to...