Whenever I build & run my program I notice that a new directory gets created in:
/Users/Username/Library/Application Support/iPhone Simulator/User/Applications
Therefore, there's no way for me to persist core data between application builds. The way I thought to get around this issue (from a testing point of view) was to just use the ip...
How can I do that? What's the format specifier?
For example, I have:
long long veryLong = // assume value here
NSLog(@"%f", veryLong); // of course wrong...
...
I want to create a bitmap CGContext with the same color space as an existing CGContext.
How can I get the color space of a CGContext?
...
I am trying to get certain iVars from my view controller to my view (a subview) so drawrect will draw a shape based on user inputs. When I hard code those variables into the subview, the shape draws perfect, but when I use getters to access the custom variables from the view controller, they come back nil and the drawing is messed up. ...
In my application the user will hold the iPhone and walk in straight line, iPhone will alert the user every 2 meters to make lux measurements and record them. Is the GPS on the iPhone accurate enough for such task? (given that the place is the runway of the airport and should have clear reception of GPS satellites signals...)
...
I have been messing around with a way to justify align a collection of UIView subclasses within a containing view. I am having a little bit of trouble with the algorithm and was hoping someone could help spot my errors. Here is pseudocode of where I am now:
// 1 see how many items there are
int count = [items count];
// 2 figure out ...
I'm looking into developing an enterprise iPhone app. As it will be proprietary and will not be submitted to the App store, am I free to use private APIs?
...
Hey,
I am wondering how and whether the UIPickerView can be opened due to the user's pushing of an entry in the app's preference pane.
Thank you !
I am speaking about iPhone Development.
...
Hello,
I am new to OpenGL ES and are developing in Objective-C for iPhone.
What I am trying to understand is how light is positioned in my frustum. This is how I do it:
I create a square and put it as "floor" in my frustum. I am putting the light, right above, in the middle of the floor and point the direction of the light right dow...
Hello,
I have created an UITabView application. Each view selected from the bar is a seperate controller with own nib file. I switch between them succesfully.
In the first view I have two buttons (check out the screenshot). When clicking them I want to switch to another views which are the parts of the current view controller. I use:
...
I have two points (x1, y1) A & (x2, y2) B.
I want to animate an image from point A to point B but also have a touch event on that image. What is the best way to accomplish this?
I am currently using CGPointMake to manually plot points but I want to be able to just plug in the two coordinates and have a timer loop to move the object.
I...
Hey guys first I got a picture into a image view that was 2900x2100 and the file size was about 4MB I also had an scroll view to move around the image.
Anyways it crashed, first I though it was because the 4MB size. Then I resized it making it 1287x1234 and 1.3MB but it was pixelated when I zoom it too much.
After that I manage to make i...
My guess is that the answer is "no", but I figured I'd ask anyway.
Lets say that I have a shared library that multiple applications build into their executables. Now lets say that this shared library provides an API to some web service that uses the same username/password for all n number of applications that use the library.
Is it pos...
Hi,
I have an application that acts like an internet browser for one webpage. If the webpage is in one view, can I have it act so when a specific URL is selected that it will open the URL in a different view?
...
Is it possible to copy multiple numbers from a table to the clipboard then paste the same to the SMS.app's To-field, like possible using commas after each number?
Thanks in advance!! :)
...
I have an odd problem with UIImagePickerControllerSourceTypeCamera. My application gives the choice to select a pic from the gallery, or take a photo with the camera. If I choose the gallery, I pick a photo and return to my view, no issues.
However, when using UIImagePickerControllerSourceTypeCamera, it appears to do something odd with ...
Hi, I have a simple question.
I have a normal UITableViewController displaying a UITableView. When the user taps a button in the top right corner of my application I want the TableView to flip from right to left and then display a new UIView. I've found the animation UIViewAnimationTransitionFlipFromRight which flips the current view an...
I was curious if anybody knew the process to create an "add photo" image tile similar to that in the iPhone contacts app. It seems to be on the same level as a UITableViewCell which is shortened (if this is the way it is done).
I've read a suggestion dealing with Headers or custom UITableViewCells but nothing definitive on how it was do...
Hi
I have a UIView with a world map. This is added to a parent UIView, this parent UIView also has two markers build from UIViews. The markers are placed in the center of two arbitrary countries.
Now I find the midpoint between these two markers moves the world map view so that this midpoint is at the center of the screen, I then conti...
I've noticed that if you load connected views from a nib you have to override initWithCoder if you want to add initialization code because the designated initializer doesn't get called (which does make sense), and if you don't load the view from a nib then the same code needs to be executed in the designated initializer.
So in order to ...