I am using the following code to add a "Spinner" on top of my UITableView:
spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
[spinner setCenter:CGPointMake(120,162)];
[self.view addSubview:spinner];
spinner.backgroundColor = [UIColor lightGrayColor];
spinner.hidesWhenStopped = ...
Something strange is going on with my iphone app. I am using Core Data to store data in a SQLite database. The first time after my app starts up I try to read a table to return all of the rows to fill a UITableView with a list of things for the user to select from. If they chose the top item in the list I get a EXC_BAD_ACCESS exception. ...
Hello
I'm using a new class with nib and tableview. To costumize the TableViewCells i have defined some functions and constant values (#define) and special TableViewCells
- (UITableViewCell*) CreateMultilinesCell :(NSString*)cellIdentifier { ... }
I want to use this costumized cell in other TableViews too.
Is it possible to pack thi...
I am developing a web app for iphone which requires the application to check for changes in a text file, and as soon as a change is detected, to complete certain actions.
The text file changes around once every 3 but the change has to be detected almost instantly and so I'm currently doing an ajax refresh every second.
This works perfe...
This is KILLING me!
I have a view. in the .h file i do this:
@interface SearchLogs : UIViewController <UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate, UIActionSheetDelegate, UIPickerViewDelegate> {
NSString *startDate;
NSDateFormatter *thisFormatter;
}
@property (nonatomic, retain) NSString *startDate;
@property (n...
I have an app on the store which was built for 3.1.2, but which was crashing under 4.0GM. I've fixed the crash problem using Xcode 3.2.3, but was also getting warnings that such-and-such class did not implement NSXMLParserDelegate. I added to the headers and everything seemed fine. I've now submitted the app and it's waiting for review....
Hello,
I would like to intercept the touch on the camera button to control exactly when I take the picture by using takePicture. I still want to use the standard UI control (so I would prefer not having my custom controls in the overlay).
Touch -> Button Clicked -> My code -> takePicture
(ie. Apple code for taking picture won't be call...
I have several different views in my iPhone app. When the app starts, I will have logic to determine which view to start with (rather than always starting with the same view and leaving it up to the user to change views). One of the "views" will have several pages (tabs or table rows, not sure at this point... but the dominant view will...
Is there any way to decrease the standard width of grouped UITableViewCell and put a custom button on the left side(outside of cell boundary)? I tried to change the cell size but it keeps same
...
I'm trying to make a CCMenuItem that has scaled images. For example, I tried:
CCSprite* normalSprite = [CCSprite spriteWithFile:@"button_play.png"];
CCSprite* selectedSprite = [CCSprite spriteWithFile:@"button_play.png"];
selectedSprite.scale = 1.2;
CCMenuItem menuItem = [CCMenuItemSprite
itemFromNormalSprite:nor...
Hi,
I have a embedded webview in my app with a navbar and a uitabbar. when i touch and hold the uiwebview the copy,paste menu appears. Can i handle a single touch to show and hide my navbar and uitabbar ?
...
warning: 'NSArray' may not respond to '-objectForKey:'
PicsCount = [[[results objectForKey:@"wallper"] objectForKey:@"total"] intValue];
...
When creating a UIViewController derived class in objective-C, what goes into the init method, what should go into loadView and what into viewDidLoad - and more importantly why, and what benefit (performance?) does this have?
Also, how does this relate to UIView derived classes where the only option you have is the init method?
I know ...
my device are running on OS4 GM and it not present Mediaplayer when play. when test on os3.1.3 it work well.
when i target to deploy on OS4 it will resolve this issue, how can i fix it?
Here is my code
.h
#if __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_3_2
MPMoviePlayerController *theMovie;
#endif
//On a 4.0 device, implement the MP...
Hi Guys!
So I've been doing a lot of reading. And I have been able to finally declare an extern MutableArray and access it from different Views. I have two views:
1) Testing View Controller
2) Test2
I declare the array as follows:
TestingViewController.h
extern NSMutableArray *myArray;
#import <UIKit/UIKit.h>
@interface TestingVie...
I need to change the value of a variable of the previous view when the default back button is selected. How can I develop this using viewControllers in an iphone application?
I tried to do it by creating a custom back button and by set method. I call both these methods in viewWillDisappear method.
-(void)viewWillDisappear:(BOOL)animate...
When calling a method, i use
[self methodname];
The problem im having is, in xCode i get loads of yellow ! saying xxxappdelegate.app may not respond to methodname
Is there a better way to call methods?
Thanks
...
Hello,
I have previously written an application for Mac OSX that includes a kernel extension. It does not drive any real hardware but is instead an in-kernel IOKit service. Now the task is to figure out if porting of the whole application is possible on the iPad which basically means if kernel extensions can be written for iPad.
I hav...
I have tried in many ways that specified in many threads. Still my WebView not loading the local js files.
The way that I have tried
NSString *tempResourcePath=[[NSBundle mainBundle] resourcePath];
NSURL *resourceUrl = [NSURL fileURLWithPath:tempResourcePath];
[webView loadHTMLString:html baseURL:resourceUrl];
NSString *html = [[NSSt...
Hi,
I am working on page control to show some buttons on each page & to capture the image o it. But, after capturing 10-12 images. I am getting this error -Program received signal: “0” and my application crashed. I know its a memory issue. but i don't know which object is creating problem. Anyone has any solution for this issue.
Thank...