iphone

Is there any way to make UIWebView faster

I have a local HTML page which doesn't has any external link(css or images..) I use method below to load it to a WebView - (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)textEncodingName baseURL:(NSURL *)baseURL; it takes around 5-8 seconds to load this page, that's too slow. right? but when...

Xcode Deployment Target: Should I trust "Compiler Default"?

I have set my target deployment target to be: "Compiler Default". Should I trust that Xcode will do the right thing? The right thing being: Compiler Default - Code will load on any iPhone OS system that supports the APIs that are used. I'd like my app to run on any iPhone whose OS supports the APIs I use. If an API is unavai...

iphone/objective c (simple) question

hi guys I'm trying to avoid the redeclaration of self, in the following picker2.peoplePickerDelegate = self; // showing the picker [self presentModalViewController:picker2 animated:YES]; Why am i not able to just go like: [picker2.peoplePickerDelegate presentModalViewController:picker2 animated:YES]; Regards ...

question regarding the NSString unacceptance

hi, how to resolve this error?? [NCFArray length]; acception ...

UINavigationBar .items accessor doesn't return the current UINavigationItem

In my UINavigationBar: didPopItem: function the navigation bar's _itemStack has n items in it, shown in the debugger, but the .items accessor function returns an array with n-1 items in it, missing the current navigation item, which is what I want to check. backItem returns the n-2 item instead of the n-1, etc. The didPopItem item is the...

how to load image in background?

I have loaddata from the server and display in the table.But duw to image it will take more time.so i want to load image in the tableview using thread how it possible? ...

Instruments ObjectAlloc: Explanation of Live Bytes & Overall Bytes

Hello. I'm using Instument's ObjectAlloc tool in an attempt to understand what the memory my application (iPhone) us doing and when and where it is doing it. I would really like a basic explanation of these statistics: Live Bytes #Living #Transitory Overall Bytes When I am trying to work out how much memory my application is usin...

Will Apple approve an App that asks the user to enter his credit card number?

Hi. From reading discussions I understood that Apple will not approve an App that asks the user to enter his credit card number. Is that correct? Is there any way around it? Thanks- Nir. ...

What is a makefile in iPhone development environment?

Hi there. i have been developing iPhone apps for a few months now, i have gone through some examples of some iphone open source apps which have "makeFile" file in them. Just like cydia has got here Cydia Source Code i googled for it but couldnt get any satisfactory explanation of it. All explanations are somewhat complex. Can somebody...

Is it correct to load openGL textures like this ?

Hi guys, I started some months ago an OpenGL project which became larger and larger... I began with the crashLanding sample and i use Texture2D. I also use a singleton class to load my textures, and here is what the texture load looks like : //Load the background texture and configure it _textures[kTexture_Background] = [[Texture2D a...

How should I organize OpenGL ES 1.x 2D layer tree?

I'm developing a cute puzzle app - http://gotoandplay.freeblog.hu/categories/compactTangram/ - , and for performance reasons I decided to render the view with OpenGL. I started to learning it, I'm ok with buffers, vertices, textures in a really basic way. The situation: In the game user manipulates 7 puzzlePiece, each has 5 sublayers to...

Which frameworks / libraries should I take a look at when I want to play an audio livestream on the iPhone?

For example, if I wanted to play back an shoutcast web radio audio stream on the iPhone, what libs could I use for this? ...

NSHomeDirectory returns different path each time iPhone App is restarted

I noticed that NSHomeDirectory returns a different path each time i restart the App with Xcode, and apparently even if i click the icon manually since it doesn't load the file's contents. I'm stunned that it gives me a different directory each time i restart the app. This happens on both simulator and device and even if i use the "ForUse...

How to receive and play back a SHOUTcast audio stream on the mac or iphone?

Are there solutions in C or Objective-C to receive and play back SHOUTcast audio streams on the mac or iphone? ...

Is it possible to extend Matt Gallagher's AudioStreamer Framework to play other formats than MP3?

What I need are at least these formats (or at least some of them): Ogg / Vorbis WMA over MMS/ASF AAC / AAC+ Matt seems to use some of the Apple frameworks for audio playback, so I wonder if it would be too hard to add support for additional formats other than only MP3? ...

After interruption, delayed audio route change notifications when recording

My iPhone application requires that I know when a user has/has not plugged in her headphones. That's easy. AudioSessionAddPropertyListener with a callback listening to kAudioSessionProperty_AudioRouteChange. I write logs with NSLog as things happen. User plugs the headphones in? Get a notification, and a line in the gdb console. User un...

Any Method to remove comment characters from JSON response in XCode?

I am new to JSON. Are there any methods in JSON parser to remove the comment characters from a response. Eg. //{"response":"success"....... its SBJson for iPhone. from http://code.google.com/p/json-framework ...

Date wise sectioning of a UITableView

Suppose I have a UITableViewController with an array "history" as data source. The array consists of an undefined number of NSDictionaries. Each dictionary contains the following keys: term (NSString), date (NSDate) and id (NSNumber). I would like to map the contents of the history array according to the date values each dictionary has,...

Memory for specific program on iPhone

Hi, it is possible on the iPhone to get the memory consumption for a specific program? For example, I want to know how many memory my program is used without using the instrument tool. Thanks in advance. Alex ...

iphone cache misses

Hi! is there a way to profile cache misses in an iphone application? http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/SharkUserGuide/GettingStartedwithShark/GettingStartedwithShark.html tells that there is a 'Hardware Measurements' Profiling mode in Shark which enables L2 cache miss profiling - however...