Hi,
i have a problem. I use a Button as a BarButtonItem. It works fine so far, but my backgroundcolor works only if i click on my button. How can i set, that my backgroundcolor will be set every time ?
thx
UIButton *redEmergencyButton = [[UIButton buttonWithType:UIButtonTypeRoundedRect] retain];
redEmergencyButton.frame = CGRec...
I have a UIWebView that works fine for viewing an unencrypted Word or Excel document stored in the app's local Documents folder.
I can use either:
[webView loadData:documentData MIMEType:mimeType textEncodingName:textEncoding baseURL:baseDocumentURL];
Or:
[webView loadRequest:[NSURLRequest requestWithURL:baseDocumentURL]];
In bot...
Hi all!
I have a question...
I wish take from a string that contains a name and surname, the initial of the first and the surname complete....
example:
NSString* myName = @"Mel Gibson";
//I Wish have "M Gibson";
NSString* myName2 = @"Leonardo Di Caprio";
//I wish have "L Di Caprio";
Thanks
...
I'm new to Objective-C and not a full time programmer. I'm beginning to understand the Model-View-Controller design pattern for differentiating the UI from the model. So the user takes an action and the view controller sends a message to the delegate (model). But I'm not sure what the best way to send actions from the delegate back to th...
Does anyone know how I can set the background of my webView to the textured background that came with the iPad SDK programatically?
...
I got a subclass of UIView in which I draw an NSString object using the drawInRect:withFont:lineBreakMode:alignment: method.
Unfortunately, when I change the orientation of the device, say from portrait into landscape mode, the text doesn't get redrawn correctly but gets scaled and distorted against my intentions.
How can I solve this ...
Hi. i have a view controller that uses the getDistance method for calculating the distance between two points. My problem is that starting from iPhone SDK 3.2, the method is deprecated and distanceFrom method is effective. Now i want to build a code that works for both the sdks.
How do i do it?
One possible solution is to go for responds...
Hi,
I am using JavaScript to retain the current location and the map
This is my code:
<html>
<head>
</head>
<body>
<div>
<script type="text/javascript">
navigator.geolocation.getCurrentPosition(
function(position){
var latitude = position.coords.latitude;
...
i am creating an app which has two UIImageViews at top and bottom of the screen and few customs buttons in between them which i am using in a UIScrollview so that user can scroll through them while the two images remain on top & bottom as they are.But when i use the scrollview the buttons scroll over the two UIimageview instead of just s...
Hi there, I have this really simply code:
myPageRef = CGPDFDocumentGetPage(myDocumentRef,CGPDFPageGetPageNumber(myPageRef)+1);
if (CGPDFPageGetPageNumber(myPageRef) == CGPDFDocumentGetNumberOfPages(myDocumentRef)) {
succBtn.enabled = NO;
}
precBtn.enabled = YES;
[tiledLayer performSelectorOnMainThread:@selector(setNeedsDisplay) wit...
I a, working on coredata iphone TabBar app and passing appdelegate managedObjectContext to all the views and subviews.At some instance i need to create new record for entity A and while entity A didn't saved by the user i need to create another entity B by using the same shared context. Now, my problem is if i save the context for entity...
Hi all,
I have an iPhone app containing a UITableView in grouped style.
In the ViewController I defined an UIActivityIndicatorView as a property:
self.browsingIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
browsingIndicator.hidesWhenStopped = YES;
I want to place this s...
Hello,
I have the following statement in my code:
if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK)
but it doesn't seem to be opening my database.
Any ideas ?
...
Hello all, in my iPhone App, I want to link to iTunes Store Content, I use this code (from http://developer.apple.com/iphone/library/qa/qa2008/qa1629.html)
NSString *iTunesLink = @"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewTVSeason?i=327727418&id=327379511&s=143442&uo=4";
[[UIApplication sharedApplication] open...
I've noticed that pressing the iphone button using SDK 4 sends the application in background.
Since I'm dealing with login and other problems I find better closing the app instead of sending it in background status. So I would put an exit(0); statement inside (void)applicationDidEnterBackground:(UIApplication *)application.
Is it a cor...
Hello,
I'm having a bit of trouble with statement:
if(sqlite3_prepare_v2(database, sqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK)
in the code below, the code is jumping out of the IF at this point. Anyone any thoughts ?
// Open the database from the users filessytem
if(sqlite3_open([databasePath UTF8String], &database) =...
Hi,
I am getting problem in making my application compatible with iphone 4.0
My problem is like this.
When i click on a UITextview a custom keyboard is showing
UIView *test=[[UIView alloc] initWithFrame:CGRectMake(0, 160, 320, 215)];
UIExtendedKeyBoard *objKeyBoard =[[UIExtendedKeyBoard alloc] initWithFrame:[test bounds]];
...
I have a view added on a scrollview(maxZoomScale = 1, minZoomScale=0.25). view-frame have a size of near-about(2000, 2000). I have written code for drawing a path(for ~8000 points) in the drawRect of the view. Whenever scrollview's zooming ends, i flagged the view's drawing. Now each time drawRect is called it consumes huge memory (~16MB...
Hi,
My company had an app developp by a freelance, we didnt have an Appstore dev account at the moment so he published the app with his name. Now we have recruited an iphone app on our team, and open a dev account.
How can I transfer the app without loosing the users who already installed the app ? (I mean how can I avoid the have a d...
Hi,
I do not understand why Instruments/Leaks tells me that there is a memory leak in my viewDidLoad. I do release both objects in dealoc and set them to nil in viewDidUnload. Can someone give me a clue here?
Link to screen-dump from Instruments: http://i26.tinypic.com/28227iw.png
BR
//Christoffer
...