iphone

table to updated after selection with uipicker

An UIPicker shows up when I select a row in a table, so I can choose some things I want to be displayed on the same row. How can I update the table once I finished with the uipicker? I used reloadData right after the call to the picker, but the code is executed before I do "Done" on the picker. Some idea? Thank u ...

iPad vs. iPhone - Adjusting CSS / HTML?

** EDIT ** This is the code I'm using to detect whether it's a mobile device: <!-- Javascript inclusion --> <script type="text/javascript"> var isCE = navigator.appVersion.indexOf("Windows CE")>0;if (isCE){ window.location.href="http://m.mobileversionsample.com/";} </script> <script type="text/javascript" src="/js/jquery-1.3.2.min.js">...

Black Corners On Grouped UITableViewCells Only After Navigation Pops

I am no graphics expert but I somehow managed to make some good looking custom grouped UITableViewCells by setting the background view to a backgroundView with some CG code. In all SDK's up to 3.1.3 (maybe 3.2... I haven't tested on the iPad) this was working great, but I think a more recent SDK has introduced a change in the way graphic...

Apple Push Notification Service.

I am attempting to follow the instructions on this page: http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ProvisioningDevelopment/ProvisioningDevelopment.html#//apple_ref/doc/uid/TP40008194-CH104-SW4 To write a Java based test server that will push a payload on the sandbox push...

Uploading Binary iPhone App "The signature was invalid" again again and again...

Hello! I'm going crazy! I'm trying to upload the binary of my first application but I have always the same error! "The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate." I did everything, EVERYTHING!! I created the request for the certificate, used it for both develop...

Objective C: Initalizing static variable with static method call

The Compiler claims an error saying: "initializer element is not constant", when I try to initialize a static variable inside a method with a call to a static method (with + in its definition). Anyway I can tell him that this method always returns the same value. I know this is not the same as static method, but there seems to be no cons...

Change coordinate origin in UIView

Is it possible to change the coordinate system in a UIView so that (0,0) will be the top right hand corner? ...

How to make UISlider output nice rounded numbers exponentially?

Hi I am implementing a UISlider a user can manipulate to set a distance. I have never used the CocoaTouch UISlider, but have used other frameworks sliders, usually there is a variable for setting the "step" and other "helper" properties. The documentation for the UISlider deals only with a max and min value, and the output is always a ...

Randomize object position

hey everyone, I'm making a little quiz-style application but I've got a few issues. I random the questions from a NSMutableArray using arc4random(), then I populate the view with 3 buttons, one which includes a correct answer and the other 2 include two wrong answers what I need to do is to randomize the X coordinate (position) of the...

Iphone Custom UITabBarItem without rounded edges

hi i try to customize a uitabbar i extended uitabbar item and now have a customized image in it but i cant get rid of the rounded edges. code: @interface CustomTabBarItem : UITabBarItem { UIImage *customHighlightedImage; } @property (nonatomic, retain) UIImage *customHighlightedImage; @end @implementation CustomTabBarItem @s...

how to solve 403 forbidden error while using svn commit first time

hellow all i am using svn for version control for an iphone application . i have created it from xcode repositories by giving url ,user name and password its authenticated .After that i have created a directory from there itself and have imported my project there. Then i have checked out to the local directory and have updated somethi...

UIAccelerationValue angle

Hi, - (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration Using the above method we got an acceleration value of (x and y and z).Now i want to find angle between (x and y) and (y and z) and (z and x).How can i do this? Can anyone help me ? Thanks in advance..... ...

EGODatabase does not retain inserted record

Hi Guy! I'm using EGODatabase to process my data. When I tried to insert data into the database which I created with Base and attached to the project, the data that was inserted programmatically will not show up when I restart my app.However the data inserted manually using Base will show up just fine. Following is the code for inserti...

How can I blend audio from OpenAL with iPod music?

I'm using an audio engine I'm not too familiar with. It's an engine that came from an Apple example project (SoundEngine.cpp). It uses OpenAL to play sound effects and music, and nowhere do I see it initializing an audio session with AVAudioSessionCategorySoloAmbient or kAudioSessionCategory_SoloAmbientSound or any other categories. W...

Compiling NyARToolKit on iPhone 3.0

Hi, Has anyone here succeeded in getting NyARToolKit to run on iPhone 3.0? I'm fighting with this but I am at least down to a couple of errors: Duplicate symbol _spriteVertices (referring to the 3DGraphicsView & NyARToolKitCrossCompileAppDelegate). glView.delegate = self; (error in NyARToolKitCrossCompileAppDelegate.m) Any suggestio...

Testing MPMoviePlayerViewController in iPad simulator

I have a view that shows a MPMoviePlayerViewController modally. When testing it in the iPad simulator it works well on the first try. If I dismiss the video and then show the view again, the player only plays the audio, but not the video. Is this a simulator quirk or am I doing something wrong? Here's my code: - (void)viewWillAppear:(B...

Ok to implement backend/shared functionality for iPhone in JavaScript?

Is it ok to use the Webkit Javascript engine to implement cross-platform, non-GUI backend functionality on the iPhone, iPad? In my case, I was interested in re-using Javascript code that I have that works on top of SQLite. I thought I would need to re-implement the logic in Obj-C but perhaps I could just share it and expose some hooks ...

Using special web character in Facebook iPhone app feed

We're having some problem with our iPhone app when it posts the character '+' to a Facebook feed. Using '+' doesn't show at all and using + works in the browser version of Facebook (shows up as a +) but not Facebook's iPhone App where it shows up as . Anyone know a solution to this problem? ...

Facebook connect style Twitter integration on the eBay app

I just noticed that the twitter integration on the eBay app has the same style as the official Facebook connect SDK. I've done a search and found nothing. Did Twitter release this kind of support for iPhone SDK? ...

Do properties need to be deallocated?

I subclassed NSObject: #import <Foundation/Foundation.h> @interface STObject : NSObject { NSString *message_type; NSString *twitter_in_reply_to_screen_name; } @property(nonatomic, copy) NSString *message_type; @property(nonatomic, copy) NSString *twitter_in_reply_to_screen_name; @end My implementation looks like: #import ...