iphone

UIWebView redirect to facebook login page

UiWebView redirect its self to already login page.i want to stop redirect? I want web view to reload login page and ask for username and password.Clear context and load request again. NSString *urlAddress = [NSString stringWithFormat:@"http://www.facebook.com/login.php?]; //Create a URL object. NSURL *urld = [NSURL URLWithString...

geo location and blocking access to my app on iPhone

Hello, I am working on a radio player for iPhone. What I need is to provide my position before playing stream. I am thinking of using CoreLocation, it's ok, but how to determine geo position if user does not allow CoreLocation when asked ? What would be the best way to determine the position of the iPhone? I was thinking of getting IP ...

Loading UINavigationController from another nib automatically by UITabBarController

I think I've found the cause: Document Info window in IB has a warning: "'Selected Navigation Controller (Second)' has nib name property set to 'SecondView.nib', but this view controller is not intended to have its view set in this manner." Bummer. I've built nib in Interface Builder that has UITabBarController at top level and switc...

How to get transition like Star Trek app?

I've modified the ViewTransitions app to use kCAScrollHorizontally. I've set transition in the app delegate to use kCATransitionPush rather than kCATransitionFade. However, I still get fading in and out. How can I get the views to slide in landscape just like the Star Trek app (http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoft...

writing an iPhone application with embedded video

Hi, I am researching video streaming for an iPhone application that I may have to write in the near future. The application does a whole lot other than stream video, but video aspect is the part that I have no experience with. Anyone know of any good articles on writing streaming video apps? Google seems to inundate me with links that...

Auto-rotate the default application image according to current landscape mode

Hello! Is it possible to auto-rotate the default application image according to current landscape mode? I can rotate my views just fine according to information from the UIDevice class, but I would like the whole application to be in the correct landscape mode from the start. ...

Can an iPhone app block phone calls?

Is it possible to write an application that will block incoming and outcoming phone calls? Or is the iPhone locked down too much? Thanks! ...

pushViewController debugging

I am trying (from my 3rd child in the heirachy) to load the root view with the following. This does not work and I get the following error when the below code is run. -[DetailViewController clickButton:]: unrecognized selector sent to instance 0x1161e00' Code: MapViewController *dvController = [[MapViewController alloc] initWithNib...

How to play iPhone tap sound?

I have a button in my iPhone app that I'd like to have play the default "keyboard tap" sound when it's tapped. I've been able to play my own custom sounds easily enough, but is there any way to play a default system sound like this in my app? ...

UIScrollView not scrolling when set to a tableView's tableHeaderView

Hey everyone, I'm having difficulty scrolling a UIScrollView instance in my UITableView when I set it as a tableHeaderView. It still responds to touch events it appears, but doesn't wish to scroll horizontally. I've tried explicitly setting to setUserInteractionEnabled:YES without much luck. Is there something in particular I need to...

UIImageView subclass duplicate the image

Hi I am working on a subclass of UIImageView and one of the things I require is when the object is initalised with the initWithImage: message a 'copy' is created. I must be confusing something because I can't see what is not working here.. - (id)initWithImage:(UIImage *)image { [image retain]; if (self = [super initWithImage:image]) {...

UITextView and UIPickerView with its own UIToolbar

I like to replicate the form behavior of Safari on the iPhone in my own app. If you enter data in an web form you get a separate UIToolbar (previous, next, done) just above the UIKeyboardView. Same for choosing an option: you get the same UIToolbar just above an UIPickerView. I am looking for demos / sourcode / ideas how to implement th...

how to make iphone apps like ibeer, imilk, ibug, ibeer

Hi! I was visiting this website with cool animated apps. I was wondering how's the easiest way of building a app like those. I almost bet it uses some kind of OpenGL ES. Is it a good case of cocos2d usage? ...

Beginning iPhone Development

I'm the type of person who usually learns by doing. I have an idea for an app but am conflicted if I should just start development and when I come across something just look it up in my book (the popular apress grapefruit book) or just go through the book first getting the fundamentals down! Any suggestions? I'm already through chapter 5...

How to set UIcolor to deep blue

Hello, How can I set UIcolor to have a deepblue values (like 330099, shown in interface builder) programmatically? Thanks. ...

Core data managed objects with extra ivars and methods...

Is it ok to add ivars and methods to an instance of NSMangaedObject? By "extra", I mean ivars that you don't want serialized. Do I just add them to my NSMangaedObject subclass like any other class or do I have to take any extra precautions? ...

How can I load a NIB that isn't a view in a UITabViewController?

I want to load a nib that isn't a view in a UITabViewController. Here's what I have now and it isn't working, but it should give you an idea of what I want: - (IBAction)PlaylistButtonPressed:(id)sender { MusicPick *music = [[MusicPick alloc] initWithNibName:@"MusicPick" bundle:nil]; [self.view addSubview:music.view]; [mus...

With an NSArray of object references, do I explicitly release all objects in the array or just the array itself?

My class has an NSArray that is filled with objects. In my dealloc method, can I simply call release on my NSArray, or do I need to iterate the array and release all objects first? ...

OS X Dock in an Iphone app?

I've thought that a great addition to an iphone app would be the ability to have the OS X Dock implemented in the iphone. My idea is to have like 5 regular menu that can be chosen in my app and when you swipe your finger across the menu the individual icons would magnify and when you chose an option the icon would bounce while you waited...

Simulating accelerometers, microphone and camera in XCode

Hi gurus, Is it possible to simulate movement (ie the accelerometers), microphone and camera in the XCode simulator? If so, how do you do it? If not, are there any XCode addins or third party apps that do it? (apart from downloading to an actual iPhone of course). Thanks in advance! ...