iphone

iPhone CoreText: Find the pixel coordinates of a substring

Here's a screenshot of the twitter app for reference: http://screencast.com/t/YmFmYmI4M What I want to do is place a floating pop-over on top of a substring in an NSAttributedString that could span multiple lines. NSAttributedString is a requirement for the project. In the screenshot supplied, you can see that links are background-hig...

iPhone: fastest way to fire API calls and parse JSON?

I currently have a UITableViewController that parses a JSON response (using TouchJSON) fired asynchronously using an ASIHTTPRequest. I'm very concerned with the performance of my application.. 6 out of 10 API calls on average would lead to request timeouts and the combined time to fire an API call and parse an API call for 20 objects (e...

ALAssetRepresentation as NSData for GIFs

I'm try to allow users to pull images out of their Photos collections using ALAssetsLibrary. Users can then upload these images. My goal is to allow users to upload any GIFs they may have in their library w/o loosing any animation they may have. For PNG and JPEG files I can grab the ALAssetRepresentation, use - (CGImageRef)fullResolut...

How is this object being prematurely released?

I received a crash report from Apple and I'm trying to determine what happened. I haven't been able to recreate the crash by following their steps and I haven't seen a similar crash in any of my testing. Here is the important parts of the crash report: 9 libobjc.A.dylib 0x00004838 objc_exception_throw + 64 10 CoreFoun...

jQtouch Sort Buttons

Dear all, I looked at the documentation of jqtouch but I could not figure out how to create iphone style sort button group like this attached picture. http://img843.imageshack.us/img843/8669/captureov.png Do you have any idea how to do this with jqtouch, is there any plug-in doing this for jqtouch? Thank you for your response, cas sak...

Easiest, fastest way to render UIImage/PNG using OpenGL on iPhone?

I've written an iPhone application that takes input from a user and updates a bitmap context based on the input. After the update, it then updates the display of a UIView. I am accomplishing such by implementing drawRect in a UIView subclass. Currently I am using Quartz 2D. Given that the updates are occurring multiple times per second,...

iOS CoreData: NSFetchedResultsController performances

Hi! In the model, I have two entities: Record and Category. Category is one-to-many with Record through inverse relationship. The persistent store is of SQLITE type and the db is not so small, about 23MB (17k records). I use a list-detail design to show the records table and the detailed record view.The list viewController uses NSFetch...

AVAudioPlayer Stop

Hello All, I have been having problems with stopping the AVAudioPlayer from another class of witch it was initiated in. For example, if I go to "class 1" I can start and stop the audio but if I go to "class 2" Nothing will happen. Also I have [audioPlayer stop]; in class 1 viewWillDissapear and that doesnt work either. ... else if(seg...

Control iPhone volume using phonegap?

Hi all, I was wondering if anyone knew how to control the iPhone's volume using PhoneGap/Titanium/Corona? If not I would very much appreciate a tutorial on how to develop my own plugin that would be able to interface with the iPhone frameworks and develop something along the lines of MPVolumeView. Thanks! ...

Styling <select> tag for iPhone

When a select tag is used in a html page, is there a way to style the text size in the scroll wheel that shows on the iPhone? Linda ...

Setting a UIImage border

Is there a way to set borders to a UIImage. I know how to set it for UIImageView, but my problem is the UIImage that I load up in a UIImageview wont be of the same size or aspect ratio as the UIImageView. Hence Ive kept the UIImageView mode to aspect fit. Giving a border to UIImageView now would border the entire UIImageView rather than ...

How to parse distance data with iphone from google directions api?

I'm trying to get the distance between two places (by way of roads), and I get that an http request will return a XML with the following data http://code.google.com/apis/maps/documentation/directions/#XML but I don't get how to use NSXMLParser to get the total distance. I would assume to use the parser:didStartElement:namespaceURI:q...

Scan local network to detect windows/mac/linux computers with iPhone.

I'm trying to figure how to perform some networking tasks using Objective C on the iPhone. I'd like to enumerate all network devices on my local, home network. Also, I'd like to be able to ping individual devices. Does anyone know how and what tools/libraries I can use to achieve this and other networking tasks? I've checked the iPhone ...

view based vs windows based iphone application

REF: XCode what is the differences between view based vs windows based iphone application? Where are you going to use view based and windows based application? Example? what does facebook use? ...

How do I change the searchDisplayController table view style to grouped?

Hey guys, I have a searchDisplayController that searches a UITableView that I have. After entering the search terms, I can see another UITableView that contains the search results. However, I want this UITableView to be GROUPED, not PLAIN (like it is by default). Would anyone know how to do this? Thanks alot!! ...

Is it possible to hide the uiwebview keyboard toolbar?

Is it possible to hide the uiwebview keyboard toolbar?(previous/next/done bar) or make the uiwebview use a keyboard that does not have it? ...

Nested animation block caused "Segmentation fault"

I try to show three images, one after one, with the following code: image_1.alpha = 0.0; image_2.alpha = 0.0; image_3.alpha = 0.0; [UIView animateWithDuration:0.25 animations:^{ image_1.alpha = 1.0; } completion:^(BOOL finished) { [UIView animateWithDuration:0....

What is the program flow in case navigation based application developed for iphone in objective C?

I want to know the sequence in which default or predefined methods ( such as viewDidLoad applicationDidFinishLaunching etc) are called in program execution in a navigation based application. ...

UITabBarController skin?

Is it possible to skin the tab bar similarly to the Game Center tab bar? How so? ...

a problem about using const char* to pass parameter

I first store the 3 value into a pair of map like this: void AddMenuAtlasTexture( int tag, const char* filename, const char* textureName ) { map<const char*, const char*> _item; _item.insert(pair<const char*, const char*>(filename, textureName)); m_texturesToLoad.insert(pair<int, map<const char*, const char*> >(tag, _item)); }; th...