iphone

problem in playing mp4 video in safari

I have a particular link to a video file in server. when i load the safari through [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://mydomain/category/2.mp4"]]; simulator pops out an alert message saying that "Cannot Play MOVIE.. Server is not correctly configured"....... Even I tried using the mediaPlayer fram...

Does iPhone have locale values for measurement units? Eg kg, lb and etc?

I've searched the iPhone documentation and on google but have not found any information regarding locale values for preferred measurement units such as kg or lb and etc. Does anyone know if this does exist? Or conversely NOT exist? Thanks ...

Animating resizing and moving UIView at the same time

I'd like to "Stretch" a UIView to the right side, meaning increase it's frame.size.width by foo pixels and at the same time decreasing it's frame.origin.x by foo pixels, using [UIView beginAnimations] syntax. However, if I do that, when the animation begins the view immediately resizes, and then starts the animation for the origin. CGRe...

Navigation problem with view controllers.

Hi All I have some problem with the my view controllers. When i have about 50 or more records in one of my table view which is below in the stack of view controllers and if i tap the back button quickly the navigation bar on the tap changes but the view does't change. For example: if i have the search controller below in the stack and...

iPhone SDK: Panning audio at different levels

Hi! I am trying to control the channel (left/right) and its volume from which the audio file is played. It will be great if someone can explain how this can be done or point me to some document or tutorial which explains this. Thanks a lot! ...

How to Pass Date from one View to the next View containing UIDatePicker

How can i get the date from database and load it onto the UIDatePicker? ok i will describe my question in detail I am fetching data from SQLite 3 database and that data is fetched onto the RootViewController from the database.Now i want that data to be forwarded to the next view in which i have my UIDatePicker,So the UIDate Picker shoul...

How can I prevent a view from covering my tab controller in my tab based application?

I have an application with a Tab Bar Controller that has three tabs. In tab 1 there is a view (view1) with a button that when clicked transitions the user to a new view (view2) still within tab 1. However when this new view (view2) is loaded it covers my tab bar controller. What is the best approach for me to take to still display t...

NSMutableDictionary of NSMutableSets... sorting this out

I have a NSMutableDictionary of NSMutableSets. Each set entry is a string, something like this: NSMutableSet *mySet = [NSMutableSet setWithObjects: [NSString stringWithFormat:@"%f", time1], [NSString stringWithFormat:@"%f", time2], [NSString stringWithFormat:@"%f", time3], nil]; // time 1,2,3, are NSTimeInterval variables ...

Sorting a multidimensional array in objective-c

Hello, I'm trying to sort a multidimensional array in objective-c i know that i can sort a single dimensional array using the line of code below: NSArray *sortedArray = [someArray sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)]; I can't seem to figure out how to sort a 2D array like the one below: ( ("SOME_URL", "SOME_...

loading table view on click of button

hi all, i have created an iPhone application with a view based .. the problem is i want to load a table view on click of button how can i do it? i tried.. initWithNibName:@"xibfile" bundle:[NSBundle mainBundle]... but table view is not loading wat to do? ...

What is the best way to display long file name in UITablView

Hello everyone I have some source codes to display all file names in a UITablView I noticed that if the file name too long, for example filenameabcdefghklmn.dat it will display filenameabcde... I hope to know what is the best way to display long file name in UITablView? Thanks interdev ...

Store default value in iPhone

I am developing my first iPhone application. I need store some values in a place where the values will not get lost if the app is deleted. I need this to get the number of days the user actually used the app. Is this possible to do? Thanks in advance! ...

how to get access subview of UIView?

according to this code if i want to access imageView1 and imageView2 how can i access to it? please show me some example example cell.accessoryView.subviews ? UIImageView *imageView1 = [[[UIImageView alloc] init] autorelease]; UIImageView *imageView2 = [[[UIImageView alloc] init] autorelease]; imageView2.alpha = 0; [cell.accessoryView ...

How to gather usage statistics for iPhone app?

I am in the process of releasing my first iPhone app. It's a simple utility, I'd just like to gauge the release process, app lifetime and trends, just so it can help make more realistic choices in future apps. I think it would be nice to have usage statistics in addition to download stats from Apple. For example, how many times is the a...

How can I create a texture from an AtlasSpriteManager?

What I want to do is create a huge texture(w/ width of more than 1024) using a 1024x1024 image. I can retrieve the images using an AtlasSpriteManager, but whenever I try to retrieve the texture from the manager I can only get the first image. I need to set the position of every AtlasSprite in the manager to make a lengthy texture. Any ...

[[UIDevice currentDevice] orientation] always null

As per the title. Calling [[UIDevice currentDevice] BeginGeneratingDeviceOrientationNotifications] has no effect. DidRotateToInterfaceOrientation etc events are working fine, but I need to be able to poll the device orientation arbitrarily. How can I fix/do this? The long story: I have a tab application with a navigation controller on...

collision with moving objects

I have tried to write a collision with the moving "floats" but did not succeed. Is something maybe in the wrong place of the "collision" code? // // FruitsView.m // #import "FruitsView.h" #import "Constants.h" #import "Utilities.h" #define kFloat1Speed 0.15 #define kFloat2Speed 0.3 #define kFloat3Speed 0.2 @interface FruitsView (Priv...

touchesBegan doesnt get detected

I have a viewcontroller like the following. But the touchsBegan doestnt get detected. Can anyone plz tell me what is wrong. - (id)init { if (self = [super init]) self.view = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]; return self; } -(void) viewWillAppear:(BOOL)animated { ove...

[LazyTableImages Apple Code] Anyone noticed images fail to load after network interruption ?

Hey guys, I just noticed that when you get a network interruption the code proposed by Apple fails to load the images ... It works perfectly otherwise though ;) It is due to the fact that IconDownloader doesn't do anything if NSURL connection fails ... Before I struggle with this on my own, anyone has any tips for me :D ? Thanks a l...

Iphone VPN On Demand, certificate uploaded but not selectable from vpn configuration section.

need to install certificates for VPN access, but when I load a profile by "iPhone Configuration Utility" in the VPN configuration i can not select it. Why? what type of certificate is needed? Regards ...