iphone

Universal app iPhone or iPad

hello all, in my universal app i need to check in the ViewDidLoad if the iDevices is iPad or iPhone is there an method or code ? thanks ...

iOS XML writer class

Hi all again! I want to create a game, that will use a level system. So i want to store my levels and to be able to change them during the game (to save the state). So i decided to use XML for storing levels. I found NSXmlParser class for reading from XML, but i can't find a writer to save the level state. In my game the level state and ...

Convert NSNumber to NSString and use it in other View

So I have an Array "myArray" with NSNumbers and NSStrings. I need them in another View so i go like this: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { DetailViewController *details = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:nil]; details.subjectText = [[myArray ...

Change size of view

I put a button on view and want to call this view from another view and change size of this view but when i change size,size of button doesn't change How can i change size of view that size of all controls on view changed? Three *second = [[Three alloc] initWithNibName:@"Three" bundle:nil]; second.view.frame=CGRectMake(0, 0, 100, 100);...

iPhone -- context parameters vs. global variables

In my iPhone development, I've always used global variables for lots of stuff. The style guide in my new job says we should use context parameters instead. So I need to figure out what that means and how to do that. Can anyone explain in more detail what this means -- or point me to some code that works this way? Thanks ...

iPhone App Icon Replaced by New App

I created an iPhone app "App1" and installed on my device and everything worked fine. Now, I copied all the code from App1 and made App2. But now when I run the App2 is replaced the icon of App1 and completely replaces the App1 with App2 on the iPhone device. What can I do to resolve this issue? ...

How to change your XCode iTunes Connect login?

I am using several accounts to manage my customers iPhone/iPad applications. Therefore I need to connect to iTunes Connect with different logins. How can I change the login in XCode or Application Loader? It is always set to one default value that I probably entered the first time XCode was started. When it comes to validating or submit...

Master page concept in Iphone development.

I am developing an iphone application in which I need to have a control, lets say a button , in all of my views. I was wondering if there is an equivalent concent for Asp.net master pages in Iphone development? Ta ...

Is it possible to get all audios in audio library and store into a MPMediaItemCollection without using mediapicker

Hello everyone I hope to sue codes to load all audios into a MPMediaItemCollection object without using mediapicker manual action. Is it possible? Thanks ...

calling void function

hey all in my app i have this method -(void) Setinput:(int)input { //value declared in .h value = input; switch(value){ case(0) [b_do setTitle:@"Do" forState:(UIControlState )UIControlStateNormal]; [b_re setTitle:@"Re" forState:(UIControlState )UIControlStateNormal]; [b_me setTitle:@"Me" forState:(UIControlState...

How could I replicate the animation within the ABC Player application?

Anyone know of a good tutorial on how to animate/transition an UIImageView into view like how they did in the ABC aplication ...

using sharedinstance of uiimage

Hi, I want to make a sigleton class having uiimage variables. I want to use these variables of uiimage as sharedinstance but i am not able to define it properly can someone please guide me in this regard? Thanks ...

space/gaps between divs on website when viewed on iPhone/iPad

I'm having some difficulty getting my website to display properly when viewed on the iPhone and iPad. The webiste (not even close to being finished) is www.lzkconcepts.com. The website displays properly when viewed on every desktop browser I've tried (safari, chrome, firefox, IE), however, on the iPhone/iPad there is a tiny gap/spac...

What's the easiest way to write a guide book-type application for iPhone?

Are there any libraries that can help me? I'm a Python programmer and have never used Objective C before, so the easier the better! Thanks. ...

Passing a managedObjectContext through to a UITabBarController's views

I have an app which is based on the Utility template (where you flip over the view to see another). On the first view there is a login screen, then it flips over to reveal a UITabBar style interface. I'm having trouble working out how to pass the managedObjectContext from the App Delegate (where it is created) all the way through to eac...

UIImagePickerController.frame is not full screen

Hi! I'm initializing an UIImagePickerController like this: self.cameraController = [[UIImagePickerController alloc] init]; self.cameraController.sourceType = UIImagePickerControllerSourceTypeCamera; self.cameraController.showsCameraControls = NO; self.cameraController.navigationBarHidden = YES; self.cameraContro...

How to draw on a non-transformed context while zoomed in a CATiledLayer?

I'm using a CATiledLayer for the visualisation of data. By default the drawLayer function gets a transposed and scaled context, which allow the drawing code to be agnostic of the zoom-level and the tile that's being requested. However, I would like to use the zoom functionality to change the horizontal range of the data, without actual z...

NSUserDefaults physically data

I'm wondering if there's anywhere i can see what data is in my NSUserDefaults? Like, how does it works? Is there a file that stores in my iphone that contains all the data in the NSUserDefaults or is the file stores in different apps? If i have set [NSUserDefaults standardUserDefaults] setObject:someString forKey:@"someString"]; in app A...

UIImagePicker and AVCaptureSession access camera simultaneously

Hi Everyone, I'm wondering if it's possible to have an instance of an AVCaptureSession and UIImagePicker both accessing the camera simultaneously? I want to create an app that shows an ambient light meter/indicator as an overlay view of a UIImagePicker when the camera is active. I previously implemented this using UIGetScreenImage() but...

Navigating to a nested xib

I have a menu view (Menu.xib) that has several options. One of the options is 'Games' which when touched goes to a list of games (GamesList.xib). On this view there is an '+' button to add a new game (AddGame.xib). What I would like to do is from the menu, click Add Game option which will load GamesList and then AddGame. So when I have ...