iphone

IB objects vs manually allocated objects in init/viewDidLoad

When I programmatically allocated a UILabel in my custom initWithNibName method, and later in viewDidLoad, tried to assign a string to it, the label was not pointing to anything. I didn't release it; the label shows on the screen. If I create the label in IB, and assign text to it in viewDidLoad, it works. Is it against a rule to set up...

Way to find out which Compilation Options were used to build SQLite

During my performance tests I found out the the SQLite version which Apple provides on the iPhone 3.0 is significantly faster then my self compiled amalgamation SQLite version. So my question is, is there a way to find out which compilation options Apple did use? Is there a test app which prints out all the default set pragams and sqlit...

Can an iPhone OS app do a search of the device's filesystem?

Can I do a search of the iPhone filesystem from within an application? I need to search an iPhone OS device and return a list of all apps installed on an iPhone OS device. I am fairly aware of Apple's restrictions and rules concerning what apps can and mostly cannot do outside of the sandbox -- and know that aside from the Photo Album an...

UIAlertView

Hi I am using multiple UIAlertViews in my code as follows -(void) myfunc { myAlertView1 = [[UIAlertView alloc] initWithTitle:@"Message" message:[list objectAtIndex:1] delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil]; [myAlertView1 show]; [myAlertView1 release], myAlertView1 = nil; { do something ...

Is there a simple way to figure out, if two transforms are the same?

I've tried this, but that doesn't work: CATransform3D currentTransform = self.layer.transform; CATransform3D identityTransform = CATransform3DIdentity; if (currentTransform == identityTransform) NSLog(@"the same"); I really woulnd like to compare each single field in the matrix ;) Can I instad compare that somehow as a whole big thin...

What can I do with an CALayer delegate?

There seems to be an delegate that can be set like myView.layer.delegate = anObject The documentation just says: delegate Specifies the receiver’s delegate object. @property(assign) id delegate I wonder what kind of methods that delegate would implement, and when they would be called. Could solve some big problems ...

How to base64 encode on the iPhone

I have found a few examples that looked promising, but could never get any of them to work on the phone. ...

Why is finished always zero/NO when an animation ended and the delegate-method from the didEndSelector is called?

My delegate for ended animations looks like this: (void)animationDidEnd:(NSString *)animationID finished:(BOOL)finished context:(void *)context for some reason, the finished is always NO in my animation chain. But I need to know if an animation in my chain has finished completely. Example: Something says: "move to (20,100)". And as ...

accessing plists on iphone simulator

So I have started building plist files using NSCoder, but as I"m developing i want to look at them and see what data is being saved. How do i find/access the plist files generated by my app in the simulator (and on the device when i get to that) Places Ive looked: application bundle build directory ...

glClearColor() pushing the iPhone at 27% render utilization

As a result of the search for an answer of this question, I ran into a rather uncomfortable finding. It seems that rendering only glClearColor() at 60 fps pushes the iPhone at 27% render utilization. That means that doing hardly anything at all - only refreshing the screen - makes the iPhone use more than a quarter of its render capaci...

Opengl ES - Incorrect Rendering on the z axis?

I have a model of a snowman that I am loading from a .obj file. Everything works well except that when I use glRotatef() to rotate the model the head of the snowman will always render in front of the body. The nose of the snowman will also always render behind the head. This creates the effect that the snowman changes direction as he is ...

Where is the difference between an "transform" and an "affine transform"?

There is a function like: CATransform3DGetAffineTransform Returns the affine transform represented by 't'. If 't' can not be exactly represented as an affine transform the returned value is undefined. I'm not so math-orientated, so a easy to understand description would be very nice. Wikipedia was no big help here. ...

how to show a two or more buttons in UITableViewsFooter Section?

hello i am creating a aplication in i have a home screen.on that home screen i have button titled continue. now i want to load a new view with that button's click.i had successfully done this. on that new view i have a UITable,a navigation bar,now i want 2 or 3 buttons beneath the table View. i do not to create custom cell. i want to don...

how to create more than 40-50 textfields and labels in a single view?

how do i create more than 40-50 textfields and labels in a single view nad when the textfield selected the keyboard should not hide the textfield.? ...

Addressing and pointers in objective C

So here is the problem. I have a method (or message as they are called in obj-C) I am passing in a pointer to an object. inside that method i am going to change what that pointer is pointing to, and release the old object. And i would like the instance variable (which is being passed into the method) to now reference the new value assi...

AVAudioPlayer currentTime problem

Hi, I'm trying to use the audioplayer with a slider in order to seek into a track (nothing complicated). But I have a weird behavior... for some value of currentTime (between 0 and trackDuration), the player stop playing the track, and goes into "audioPlayerDidFinishPlaying:successfully:" with successfully to NO. And it did not go into ...

Best practices for storing data iPhone Apps

I've a iPhone App that relies heavily of TableViews and SQLite database. Where do you store the data? In my case I pull data from the web in App Delegate and store it in AppDelegate and save it to DB at regular intervals. The rootviewcontroller is a tableview that reads the appdelegate object and populates itself. But, according to Eva...

how to get input from UIAlertView?

I want take player name as input by using UIAlertView. Is it possible to add textField on the UIAlertView? ...

UIWebView slow loading images--disturbs scrolling to anchors

We use encrypted web pages in our iPhone app, and intercepts these calls (e.g. when clicking a link) in the webView:shouldStartLoadWithRequest: method to get the file path, decrypt the data to the original html string and then doing a loadHTMLString: on the webView (returning YES in webView:shouldStartLoadWithRequest:, obviously). The p...

Changing the background color of a UIAlertView?

I want to change the background color of my UIAlertView, but this doesn't appear to have a color attribute. ...