iphone-sdk-3.0

UIWebView leaves behind link highlight when returning NO from "shouldStartLoadWithRequest"

If I return NO in the following method... - (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType ...the grey link highlight around the link that was pressed gets left behind. Is there someway to dismiss the highlight? FYI, I return NO on certain link...

Using Three20's TTThumbsViewController in conjunction with TabBarController

I've been struggling to get TTThumbsViewController to work with my application's tab bar and navigation. Bit-by-bt, I've solved most of the problems. The first problem is what I see when I get to what is supposed to be a full-screen image view. It is creating a white block where the status bar used to be. See screen-shots... Any...

Push notifications work for Ad Hoc, but not when downloaded from the Apple store.

My app just got approved for the apple store. I downloaded it an installed it on my iPhone - but it looks like push notifications are broken! I was successfully testing push notifications in production using an adHoc provisioning profile. I had no problems. The only thing I did differently when I submitted to apple was using an app stor...

What's going on with "expected specifier-qualifier-list" error

It is my GameEngine.h: #import <Foundation/Foundation.h> #import "GameArray.h"; @interface GameEngine : NSObject { GameArray *gameButtonsArray; } @property (nonatomic, retain) GameArray *gameButtonsArray; And this is my GameArray.h: #import <Foundation/Foundation.h> #import "MyAppDelegate.h"; @interface GameArray : NSObject {...

Personal iPhone application without paying ?

I want to develop a little iPhone application, just for my personal needs. I don't want to sell it or give it to anybody as it will not be useful to anybody. Can I have this application on my iPod/iPhone, without having to pay/suscribe/be on the Apple store ? ...

iphone tableview & webservice

Hi, I have a tableview, when the user selects a row i call a webservice depending on which row is selected. my problem is i can connect to the webservice but i dont get any response from the webservice. I used soap client to test if webservice is working correctly or not. //rootviewcontroller.m - (void)tableView:(UITableView *)t...

How do I send SMS without launching Text application?

Hello all: I am developing a simple application which has to send an SMS message from the app itself instead of launching the native Text app. Here's my action now. What should I change to achieve my desired functionality? -(IBAction)startButtonPressed { NSString *phoneNumber = @"13136296693"; NSString *url = [NSStr...

How to add UITabBarController programatically?

Hi, In my app I need to add tabbarcontroller to my 2nd view, If its a main view directly we can take the TabBarController type while creating the project but my requirement is i have one view controller in my app, from this view i shold call tabbarcontroller, So how can I tab view controller programatically and how to add nibs to that a...

how to change the colors of seperators based on section

Hi, I am having two section in my table view. I used the setSeperatorColor property to change the color of the seperator. It is actually changing the color of both the sections. Is it possible to change the seperator color based on the section ? ...

Compare an int to an array of ints Obj-C

Hi.. How do i go about seeing if my integer is in an array of integers... eg i want to know if 7 is in an array of [ 1 3 4 5 6 7 8] any ideas? Thanks ...

core-data NSDate searching for unique days and sorting

Lots of information on NSDates about the place, but I haven't found a clear solution to this. I have a list of Event entities, each with potentially many EventSessionTimes. Event <--->> EventSessionTime In 1 table view I want to display a unique list of days that have Events, in another table view I want to show the events on a parti...

iPhone SDK UIScrollView doesn't get touch events after moving it

Hi! I'm subclassing UIScrollView and on the start I fill this ShowsScrollView with some items. After filling it, I setup frame and contentSize to this ShowsScrollView. Everything works fine for now, i get touches events, scrolling is working.. But after rotation to landscape, I change x and y coordinates of ShowsScrollView frame, to m...

stop execution of process for miliseconds.

hi friends, I m creating a Tic tac toe game, in that after click made by user automatically the cpu will respond. I want the cpu response after 0.50 seconds, the sleep() function takes too many time, i don't want that much time, is there any other way to do so??? ...

shouldAutorotateToInterfaceOrientation called several times in a row without any rotation

I am trying to implement some interface changes in my app, based on the device rotation. My app is a view based app. So, its main view controller has a didload method. The app starts in portrait. Almost all changes on the device orientation triggers the shouldAutorotateToInterfaceOrientation method but this method is not called when th...

Require CoreTelephony framework examples.

Greetings everyone. Can any one has a working example for the CoreTelephony framework? I dumped all the CoreTelephony headers using class-dump and added them to "/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk/System/Library/PrivateFrameworks/CoreTelephony.framework". Now I'm following the Erica's tutorial (http:...

Placement/Positioning/Alignment of UIScrollView w.r.t. length of Title NSString

I have a scenario where i show stuff like: ----------------------------------- titleview (UITextView) ______________ tArea (UIScrollView) ttextview (UITextView) ----------------------------------- Now here is the condition: Length of titleview's text is dynamic, varies based on ...

Strange crashes on the iPad device with core graphics functions

I am getting a lot of strange EXC_BAD_ACCESS crashes on the iPad that only happen on the device and not in the simulator. I am assuming that they are somehow memory related, but I am not sure. They all happen with image context related functions. One strange example is using CGImageCreateWithImageInRect. For example, if i run through a ...

iPhone SDK - keep data in modal view

Hi all, I've got a modal view loaded the following way: ModalViewController *modalController = [[ModalViewController alloc] initWithNibName:@"ModalViewController" bundle:nil]; searchController.delegate = self; [self.navigationController presentModalViewController:modalController animated:YES]; [modalController release]; When the mod...

iphone maps GPS icon

I would like to make a button that centers the map on the current GPS location. Google Maps app has that icon on bottom left. Where can I get that icon. Is it embedded in the SDK? ...

NSFetchedResultsController deallocated instance

Anyone ever encountered this ? -[NSFetchedResultsController _restoreCachedSectionInfo]: message sent to deallocated instance While performing fetch with performFetch: using NSFetchedResultsController instance. I'm sure the NSFetchedResultsController is retained before performing the fetch. ...