iphone

Is there a visual guide to the UIKit components?

My Problem is this, I want to add some component to my App I saw in some other App. Everytime I wnat to do this, I start googling around for the name. It took me some time to find the name of UIActionSheet. Now I'm looking for that transparent overlay that appears when you turn the volume up and down. So, is there a good visual guide to...

View Loading Problem

Hello, I am using some xib without tab bar and some with tab bar. In starting i load the xib without tab bar-navigation bar then flow are working.But if i load a xib with tab bar-navigation bar then our all view slide bellow and half tab bar are not showing.Please anybody help me as soon as possible. Pleaseeee!!!!!! ...

iPhone: No events after rotation

Hi, for rotation of my app I use the same view and just rearrange some controls resp. define the appropriate autosize attributes. So, for example, I have a segmented control which goes from the left to the right over the complete screen. When rotating it resizes correct, but I get no events from the segments on the right side (I guess, ...

How do you fetch the complete contents of a core data entity and display the results in a uitableview?

I want to get and display the complete contents of one of my entities in a UITableView. How would i go about this im fairlt new to xcode. Once i have the data in the UITable how would i go about sorting the data? ...

iPhone loading view from nib only works once

Hi Forum I'm trying to add a «loader-view» to my app which shows a spinner while doing stuff. This works fine the first time, but it doesn't work a second time. here's what I do: I have a viewController for the spinner (spinnerViewController) and a nib-file which I made in IB (spinner.xib). I load the nib in the viewDidLoad-event: ...

C to ARM ASM converter

Hello, Is there any converter to convert a C function into ARM (v6) ASM code or I need to do it manually ? I am trying to gain the performance of a C function on Iphone. ...

How to do orientation rotation like built-in Calc app?

I'm trying to make an app that handles orientation/rotation similarly to the way the built-in Calc app does. If you check out that app, in portrait mode there's a normal calculator, and if you rotate to landscape mode there are additional buttons that appear to the left. I can't figure out how to do this by setting the autosize masks. ...

question on refreshement

I have one UITabelView. UITabelView *tabelView ; [tabelView reloadData]; but this reloaddata function is not calling cellForRowAtIndexpath method and numberOfRowsInSection method why? ...

UISearchDisplayController

Well, i don't find any good tutorial or anything on the search bar. I don't understand how it works. Can you help me or give me a good link, or a sample code (i see the sample code TableSearch by Apple and it's definitively bad ^^) ...

What does “@public” mean in Objective-C?

After reading a question on @private I understand how that works. However, since all variables default to @protected and you cannot really access a variable without defining an accessor, what exactly does @public do? When would you use it? ...

Viewport bugs when coming back from mediaplayer

I have a web page for iPhone/iPod touch displaying a thumbnail of a video. Quite simple, the thumbnail links to the video itself: <meta name="viewport" content="width=320" /> [...] <img src="images/buttons/video_play_button.png" onmouseup="window.location = 'http://wapshop.gameloft.com/iAd_prototype/videos/video_01.m4v'" ontouchstart=...

Auto-rotating views and UIDevice interface notifications

Hello! I have trouble with auto-rotating interfaces in my iPad app. I have a class called Switcher that observes the interface rotation notifications and when it receives one, it switches the view in window, a bit like this: - (void) orientationChanged: (NSNotification*) notice { UIDeviceOrientation newIO = [[UIDevice currentDevi...

Fail to save a managed object to core-data after its properties were updated.

I have no trouble to create the object, but updating it fails. Here is the creation code: // Save data from pList to core data fro the first time - (void) saveToCoreData:(NSDictionary *)plistDictionary { // Create system parameter entity SystemParameters *systemParametersEntity = (SystemParameters *)[NSEntityDescription ...

How to make text field first responder and not delete text? iPhone

When I make a text field first responder it deletes my default text. I want this text to stay until the user enters something. The end result that I am looking for is that I want the keyboard to appear on the screen and default instructions to still appear until user clicks a button on the keyboard... at which time it should clear defa...

Navigation Controller not Pushing/Popping View Controllers

I'm working on a view-based iPhone app that has the following flow: search -> (list | map) -> details To accomplish the transitions between views, I have a UINavigationController, with the search view controller being the root. After a user performs a search, I transition to a view with a segmented control, which acts as a tab to switc...

iPhone OpenGL ES - occasional initialisation problem

I am using OpenGL for a 2D graphing application. I have recently started having strange problems with the UIView that displays the GL render buffer. Sometimes (40% of the time?) when it initialises, the view is in a frozen state, occasionally displaying artefacts of the last successful running of the program. The rest of the program is...

SQLite Step Failed: attempt to write a readonly database , using wrapper

I keep getting an error "SQLite Step Failed: attempt to write a readonly database" when using this code to copy a database: -(void)createEditableCopyOfDatabaseIfNeeded { // Testing for existence BOOL success; NSFileManager *fileManager = [NSFileManager defaultManager]; NSError *error; NSArray *paths = NSSearchPathFo...

UIWebView loading slow if using baseUrl

this works very well and fast but it does not load images if I give baseurl instead of nil. It takes few seconds to load. NSURL *myUrl = [[NSURL alloc] initFileURLWithPath:self.contentPath]; //NSLog(@”Content url is %@”,myUrl); NSString *string = [[NSString alloc]initWithContentsOfFile:self.contentPath encoding:NSASCIIStringEncoding er...

Handle row deletion in UITableViewController

Hello, I hava a UINavigationController. The first level is a UITableViewController, the second level just shows details on one of the items of the table view. In this detail view, I can delete the item. It deletes the underlying managed object. When I pop back to the view, I have a crash. I understand why, it's because I didn't updat...

iPhone dev: Increase scroll speed in UIWebView?

I have an app in which I render local HTML files in a UIWebView. The files, however, are sometimes large, and getting to where you want takes a long time with the default scroll speed. Is there any way to boost up the vertical scroll speed of a UIWebView? ...