Hi Everyone:
I am wondering if there is some way to rotate a created ABPeoplePickerNavigationController. I am creating the ABPeoplePickerNavigationController like this:
ABPeoplePickerNavigationController *addressBook = [[ABPeoplePickerNavigationController alloc] init];
addressBook.peoplePickerDelegate = self;
[self presentModalViewCo...
A simplified example here:
I have a game that I am writing in opengl es. The game has two different screens that do completely different things based on the user's touch input.
What is the best way to abstract out the uitouch events from the view?
I imagine that in a perfect world the touch events would be handled by my game loop, bu...
Hi guys,
I've got a Selected-state and a Normal-state for an UIButton that both are UIImages. When a button is touched, I'd like it to hit the selected-state and then animate back to the normal-state over the period of one second. I've set the following animation when the UIButton* btn is pressed, but it just switches right back to dese...
I have a view with a subview whose alpha and backgroundcolor I would like to change through the use of declared properties. I have written some code as below and it works fine to change the alpha, but the background color is not changed when the property is set to a new value. Any help would be appreciated please.
@interface MyView ...
I am apparently in some swirling UIView hell zone at the moment where up is down sibling is parent and my brain is completely fried.
Here's the deal. Really, really simple. I have a container view with N leaf node sibling subviews. No tricks here, dead simple. I do the following:
// occludedPageSet is the set of view tags correspondin...
I have a UITextField that I want to present to the user with a pre-filled suffix. Obviously, I'd like to have the insertion point set to the beginning of the pre-filled text.
It doesn't seem obvious to me how to do this (there's no insertionPoint property), but is there a tricky way to get this done?
...
I have two types of objections: locations and history items.
I'm trying to fetch locations which are attached to any history item, so my fetch predicate for the location is "history.@count > 0", which works fine.
I'd also like to sort the location objects with an NSSortDescriptor by the date of their latest history item, which as far as...
Here is my problem:
I've read a lot about how to use a tab bar within a navigation based application, but i still can't figure it out. I have tried both to use and avoid using a tab bar controller, but i just can't find the solution.
I already have a navigation based app working. I have several nib files (views), each one with its own ...
Can someone please school me on the proper way to load a view hierarchy from a nib file. I am using the loaded view as a template to stamp out a family of views and the current approach I am using is subtly broken. I don't appear to be copy-ing or retain-ing when I should be. Here's the relevant code:
// pageSet is a list of view tag nu...
If I want to have 20 objects all running their own animation on the screen at once, is there any way to go about doing that without an obvious slowdown?
My example here is the main screen, in edit mode. Every icon on the screen is shaking slightly, but there's no noticeable slowdown. When I tried something similar, the animation slows...
Hi,
As I am aware iPhone has got 2 speakers: quiet(phone) and loud speakers.
I am using AVAudioPlayer to play an mp3 file. iPhone seems to choose what speaker to use arbitrary. How can I make sure that my audio will always be played via the loud speaker and at a maximum volume?
Thanks.
...
My app has a set of categories. A category can have sub-categories.
DirectoryCategoryController is the first screen, displaying all the top-level categories. Works great. When you tap a cell, if the category selected has sub-categories, I instantiate a new instance of DirectoryCategoryController and push it to display the sub-categories...
I have an MKMapView that I am considering rotating in order to more conveniently display a series of Annotations to my users.
As of now I am planning on simply rotating the entire view with a CGAffineTransform, but I wanted to know if anyone had any experience with MKMapView rotation.
Are there any pitfalls or "gotchas" that you came...
How can I find out what the image name (usually file name?) loaded into a UIImage instance is? In this case, they were all initWithContentsOfFile:.
...
I'd like to rotate an instance of the class RMMarker on the map of my iPhone app, to the current bearing the person is heading. The RMMarker uses a UIImage , and it's a little blue arrow.
If RMMarkers used a UIImageView, rotating wouldbe a piece of cake, because I would use CGAffineTransformMakeRotation. But RMMarker's use UIIMages, so ...
Hi,
I've got a tabbarcontroller, and a MainView.nib that houses 3 Views and ViewControllers within the MainView.nib.
When I try to associate another nib with its own ViewController to the fourth tabBar, I get errors on tapping the bar,
I'm probably doing something wrong cuz usually the same principle works perfect in a non tabBarContr...
Hello Experts!
I am trying to do a POST towards a site which utilizes secure session with cookies.
Ofcourse this won't work with the code I have posted below. It keeps responding with a non-authorized message.
Is there any way I can use cookies in my code or at least simulate cookie usage?
NSURL *url = [[NSURL alloc] initWithStri...
How would I create a core-data application that syncs with a MySQL database?
Should I implement a SQL-Lite layer and try to sync with MySQL that way?
Or would running web services be better? I want to take advantage of Core Data modeling though.
Is there any way to use Linq? I love linq.
...
Hi,
I've disabled auto-correction type for my text field,
and it does not show any other auto-correction,
but it still automatically creates a dot (.) when I press space key twice.
For example,
if I write "test" and press space key twice,
it automatically changes into "test. "
Anyone knows how to disable this feature?
Thanks a lot.
...
Hello,
I am trying to build an RSS reader for the Tom's Hardware website.
I have an error when I try to load an URL into an UIWebview from an RSS link.
Here'is my code:
- (void)viewDidLoad {
[super viewDidLoad];
if (self.url != nil) {
NSURL *requestUrl = [NSURL URLWithString:self.url];
NSURLRequest *requestObj = [NSURLRequest...