iphone

Iphone SQLite Databse with german umlauts results in NULL value

Hi guys, I'm quite new to the Iphone development and after search for an answer for 3 hours now, I hope that you guys can give me a hand. My problem is that I have a SQLite Database with german umlauts. Looking at it with a SQLite browser tool shows me that the data is stored with german umlauts, correctly. But selecting fields with g...

How do I scroll the iPhone UIPickerView from the last item to the first and continue forever?

I want my UIPickerView to rotate to the beginning of the list when it is scrolled past the bottom. How do I do this? Basically, I want the functionality of the UIDatePicker when it scrolls the hours/minutes/seconds continuously. I'm assuming I could just return an extremely large number from the numberOfComponentsInPickerView and then t...

Better performance for SQLite Select Statement

Hi Guys, I'm developing an Iphone App where the user types in any string into a searchbar and presses the search button. After that a result list should appear. In my SQLite I have four columns a, b, c, d. Let's say they have the following Values: Dataset 1: a: code1 b: report1 c: description1_1 d: description1_2 Dataset 2: a: code2 ...

Drawing/Rendering a UIView Within a Separate Thread so NSTimer Always Fires Timely

I'm using a NSTimer to fire a drawRect within the app's main view. The drawRect draws a few images, and blends each using kCGBlendModeScreen (which is an absolute must). However, the drawRect takes just a tad longer than desired, so the timer doesn't always get fired at the desired rate (more like half as often). I've optimized the grap...

iPhone Function Symbol Not Found

Hi, This is a lame question; but I couldn't find a way. In an iPhone application I am creating a function in .m file: - (void) xx { .... return; } and in .h file a declare it as: - (void) xx; However when I call the function in anywhere, I get linker error (symbol not found) in compile process. Where is my error? ...

iPhone dynamic uiview reording

This is similar to a prior question, but it was not properly answered. On the iPhone, if you touch and hold your finger on an icon, it starts vibrating, then you can drag the icon around while the other icons move aside and rearrange dynamically. Ignoring the vibration effect, how can I implement the dragging and the real-time dynamic r...

Best approach for one view to call a tabbed view on iPhone

EDIT Let me simplify the question: Suppose your application has two views, the home view and a tabbed view with 3 tabs. The home view has three standard buttons named "Tab1", "Tab2" and "Tab3". When you click on "Tab1", the tabbed view should be opened with tab 1 selected and the same goes for Tab2 and Tab3. Any hints? /EDIT What I'm ...

Camera Preview inside Window with iPhone

Hi, I can launch a camera capture with UIImagePicker but capture process is done in another view. Is it possible to 'embed' camera preview into the application window? What I use is: UIImagePickerController *picker; picker = [[UIImagePickerController alloc]init]; picker.sourceType = UIImagePickerControllerSourceTypeCamera; picker.allo...

Zoom UILabel & Re-render font at correct size

I have a multi-line UILabel that I want to enable zooming on. I embedded it with a UIScrollView and set min zoom to .25 and max zoom to 4. This works well, however my UILabel's font looks rather gross at any zoom level other than 1. I can handle this method: - (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView ...

iPhone only server?

Is it possible to restrict access to a server so that only iPhone devices can use it? I have no experience in setting up servers or the like before. I am still very fresh to programming. Thanks. ...

Error Creating iPhone ad hoc distribution

Hello- I'm trying to do an ad hoc distribution of my iPhone app to some beta testers. I created the certs, device IDs, provisioning profiles, etc. and followed the instructions on Apple's site regarding how to incorporate them into the build/distribution. When I copy the provisioning profile and app to iTunes and try to sync, I get the ...

NSConnection Delegate thread problem

Hi all, I have an NSConnection's delegate set to a class. I take the data from the delgates composed object and show t in my tableview. But the problem is I don'tafter the connection is established the View is diaplayed first and then the Connection delegate is ran and the data is loaded.WHich of no use to me. I need to run the delegat...

Image Move & Resize not working when using a custom camera overlay iPhone SDK 3.1+

I used to use the old-school method of adding an overlay to the camera screen, and that worked fine. However, since 3.1 came out, Apple is insisting that I use the API to add an overlay. I quickly got the overlay to work, but it seems that if I use the custom overlay, then the move & resize screen is not responsive, I can only use or r...

Flipping UIView inside UIScrollView

In photo app of iphone you can see smooth scrolling to the other picture with finger flicking. Is it possible to allow individual view to be 'flipped' (or rotated) to show its back side ? Found that UIScrollView is used for smooth scrolling and found the code for flipping UI. Outside of UISCrollView I got the flip to work using the code ...

clipsToBounds question.

I have an IPhone main view, myView, and I add a subview, mySubview. Now I activate in the mySubview drawRect method, a scale-up procedure, which expands both the bounds and the image in the subview by clocking some 40 frames, each scaled slightly bigger than the last. This way I get a set of expanding ripples. Trouble is, even though ...

Transferring iPhone Provisioning Profiles

I thought there had already been a similar question but searching for it yielded no results. So if anyone can find it and link me I would appreciate it. I have not done any iPhone development in months (Since last August I believe) and since then, I have reformatted my MacBook when I installed Snow Leopard. Well, I am interested in work...

app could not be verified alert

HEllo, I am quite new to iphone development, I am following the specified steps to test app on my device. I have two provisioning profiles outof which none are expired. These profiles aare working fine on 3.0 devices, but when I try on 2.0(iphone) devices it says application could not be verified. I am using snow lepord and it doesn...

How do I put viewController's into a UIScrollView

I want to initialize 5 viewController's that I want to be able to flick between in a UIScrollView, when my app loads. ...

Info.plist file processing modifies executable

I've been working on an iPhone application had an issue where dSYM file generation was seg faulting on me. GenerateDSYMFile /Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app.dSYM /Users/kaom/Projects/build/Release-iphoneos/NodeAppGen.app/NodeAppGen cd /Users/kaom/Projects/Apps/NodeAppGen setenv PATH "/Developer/Platforms...

Autosizing relative to content view, not superview?

Hello, In my iPhone app, I have a UIView inside the content view, and I have some controls inside the UIView. I've set the autosize properties for these controls in Interface Builder, but it seems that they're getting autosized relative to the whole content view, instead of relative to their superview. However, it specifically says in t...