iphone

Is ther anyone familiar with Erica Sadun's APIKit(app private api scanner)?

Hello everyone I'm trying to use APIKit to scan my codes to detect if there is private API. apiscanner should run as ./apiscanner ~/Desktop/MyPath/myapp.app I used command 'cd' go to the directory where apiscanner is. But if I call ./apiscanner ~/Desktop/MyPath/MyApp.app on terminal it reports Last login: Sun Jun 13 07:22:07 on tty...

iPhone Apps, Objective C, a Graph, and Functions vs. Objects (or something like that)

Gentleones, I've got a UIImageView that I have in a UIView. This particular UIImageView displays a PNG of a graph. It's important for this particular view controller and another view controller to know what the graph "looks like," i.e., the function described by the PNG graph. These other view controllers need to be able to call a "func...

How to implement a cache for web resources? NSURLRequest cache or disk caching?

I have several UITableViews that asynchronously load the images, video, and text from the internet using NSURLRequest and NSURLConnection (Think similar to NYTimes app). That works fine. Currently the content isn't cached. I don't need offline access but just want to cache to speed up performance. What would be best: Using NSURLReques...

iPhoneOS Core Data migration: moving something from an entity into a file

I have a scenario where I'm moving the contents of a blob stored in a core data entity into a file. I need a way to export that data during a migration, where I know the entity that's being converted and save the blob to a file, writing the location of that file into the converted entity's appropriate attribute. I can't seem to find a w...

Is there a technology that can pinpoint an iPhone's *exact* location (to the feet/couple feet, indoors)?

Is there is a way to determine an iPhone's exact location (indoors, and to a distance of just a couple of feet) via use of radio/antenna's or some other infrastructure located around premises (i.e a hospital, shopping mall, school). Will appreciate any ideas/direction (technologies, research) as for how to overcome this limitation. ...

Rotating an object in OpenGL ES for iPhone [translate to origin --> rotate --> translate back is not working]

I recently started working with OpenGL ES for the iPhone, and I am having a bit of trouble with it. I want to be able to rotate an object with your fingers. My problem is that I have my object placed at (0, 0, -3), and I would like to rotate it about its center. I know that I need to translate back to the origin, rotate, and then bring i...

Compiling program that uses libpcap on Mac OSX using iPhone 3.1.1 SDK for use on iPhone

Hey SOV users, I have a question that I'm hoping some iPhone Developers may be able to help with. I had a look at statically compiling a binary on my Mac and moving it over to the iPhone for execution. I have managed to get this bit of it working by installing the iPhone 3.1.3 SDK on my Mac and setting the architecture to the iPhone in ...

iPad to iPhone?

Hello - I have written a tab based iPad application which has done well. I never intended for it to be an iPhone application because the content it displays really doesnt lend itself to such a small screen. However, I have been getting a lot of requestes for the application to be compatible with iPhones as well. Can someone point me ...

PlaySystemSound with mute switch on

I know, I have to set the AudioSession to the 'playback' category, which allows audio even when the mute switch is on. This is what I do, but sound still gets muted when switch is on. UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback; AudioSessionSetProperty(kAudioSessionProperty_AudioCategory,sizeof(sessionCategory), &sess...

iphone integer multiplication

I don't understand why this doesn't work: [abc = ([def intValue] - 71) * 6]; '*' should be the viable way of doing multiplication and 'abc' is defined as an NSInteger. ('def' is an NSString) ...

iphone - how to implement rotational view as in iscopes

In iPhone app store, there is an app "iScopes", it implements a rotational view kind of thing. Please see the video iScopes App Can some one suggest me how to implement this kind of view? ...

iPad orientation on launch problem in portrait (bottom home button)

Hi.... I've an iPad app that supports all orientation... my problem was on the start up of the application. In case of landScapeRight and landScapeLeft and portrait(top home button) the views shows correctly but when the app start in portrait (bottom home button) the views show in landscape mode... I've implemented the - (void) willRo...

Set orientation of volume indicator for iPhone glES game.

I'm subclassing UIView using the standard EAGLView framework. When I detect orientation changes, I just add a rotation to my OpenGL stack. However, when the user adjusts the volume using the physical iPhone buttons, the volume indicator is (naturally) not rotated by the GL stack. How do I rotate the volume indicator? ...

xcode compile console application - c programming

Is it possible to use Xcode using iPhone 3.1.3 SDK to compile a standard C program that will work on the iphone? I'm trying to use xcode to compile a basic 'hello world' but to no avail. Do I need to obtain an additional application template or am I just missing something? ...

Objective C code to handle large amount of data processing in iPhone

I had the following code that takes in 14 mb or more of image data encoded in base4 string and converts them to jpeg before writing to a file in iphone. It crashes my program giving the following error : Program received signal: “0”. warning: check_safe_call: could not restore current frame I tweak my program and it can process a few m...

NSNumberFormatter not honoring digit information in scientific style

I am trying to display some decimals in a scientific style. I'm using NSDecimalNumber and NSNumberFormatter objects. When setting the minimum and maximum number of digits though, some information from the original number seems to be lost. For example, consider the following code example: NSDecimalNumber *dn = [NSDecimalNumber decimal...

How to resolve warning about does not implement the 'UIActionSheetDelegate' protocol

here is my .h code @interface ROSettingViewController : UITableViewController { UISwitch *switchCtl; UISwitch *switchCtl1; NSArray *dataSourceArray; } @property (nonatomic, retain, readonly) UISwitch *switchCtl; @property (nonatomic, retain, readonly) UISwitch *switchCtl1; @prop...

iPhone Audio Queue Service sample units

I am looking at Audio Queue Services document specifically on the following code: // Writing an audio queue buffer to disk AudioFileWritePackets ( // 1 pAqData->mAudioFile, // 2 false, // 3 inBuffer->mAudioDataByteSize, // 4 inPacketDesc, ...

Why the CLLocationManager delegate is not getting called in iPhone SDK 4.0 ???

This is the code that I have in my AppDelegate Class - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { CLLocationManager *locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.distanceFilter = 1000; // 1 Km ...

How will I have to update how I program for iPhones now with iOS4?

For example, preparing a launch screen of 320 x 480 would have to be changed.... How is that going to work for us? Are programmers always going to have to be submitting a high-res that will be scaled down for old devices such as the iphone 3g? ...