I have a uitoolbar with a button that when clicked captures a image of a uiwebview to the photos storage.
Is it possible to have the button hide onclick and then reappear after the capture code has finished.I created the button with interface builder.Don't want the toolbar showing in the captured image.Thanks in advance for any help offe...
i can load web view on button press like this
-(void)buttonEvent:(UIButton*)sender{
NSLog(@"new button clicked!!!");
if (sender.tag == 1) {
NSLog(@"1");
}
if (sender.tag == 2) {
NSLog(@"2");
NSString *path;
NSBundle *thisBundle = [NSBundle mainBundle];
path = [thisBundle...
Hello All:
I have two files(file1.m and file2.m) and two strings(NSString *str1 = [[NSString alloc] initWithString:@"hello!"] in file1.m and NSString *str2 in file2.m).I set str2 = str1 by a method and then the str2's value is "hello!".
Then I change the str2 to "hello hello!" in file2.m,and i want the str1 in file1.m is also chang...
I have a file called fireFinalRotate.mp4, it's in the XCode project folder (both in XCode and in finder). For some reason
NSString *path = [[NSBundle mainBundle] pathForResource:@"fireFinalRotate" ofType:@".mp4"];
returns a nil. Any thought? I'm baffled. Is it because it's a movie file? That code's in viewDidLoad.
...
Hello
I was wondering how to only let iPhone 4 use my app which uses the front camera.
Can I do a + (BOOL)isCameraDeviceAvailable:(UIImagePickerControllerCameraDevice)
and how do I implement it so that it gives some sort of error if it returns no
or do I have to a NSString *DeviceType etc..
if iPhone 4 ...
do nothing
if else ... ...
I need to port an existing game written for the iPhone to Flash. The iPhone game is mainly written in pure C rather than Objective C.
I'm wondering if there are any good tools for converting the C code to Actionscript directly, or in general if anyone has some advice on how to do this porting in an efficient way given its C based source...
Hello. I'm diving into iOS development and I have a few questions about manipulating a simple Core Data object that I created in Xcode. After using the object editor, here's the class that Xcode generated for me...
@interface Alarm : NSManagedObject
{
}
@property (nonatomic, retain) NSNumber * Enabled;
@property (nonatomic, retain...
Hello,
I am a beginner in iPhone development and I have come across a problem with MKMapView. First let my describe how to reproduce the problem.
Create a view-based application
In Interface Builder, add a MapView that cover the whole view area
Add a UIButton over the Mapview (size 50x50 is fine, put it in a corner)
Associate the MapV...
I have an app which shows text in a UIPickerView based on a search. I want to highlight specific letters in the string that are there as a result of a wildcard character.
For example, if I searched for "CA?", one of the rows will show "CAT" and I want only the letter "T" to be in the color blue.
Any ideas? The user gets immediate fee...
My app launches in landscape mode, however everything I have set up in Interface Builder shows up sideways on the screen as if it's in portrait mode. It's definitely not in portrait mode though. I dont understand why the app launches in landscape mode, but everything comes up as if it's in portrait mode...any ideas?
...
I have a NSMutableArray of some instances of a custom class (it has a NSString, CGPoint, and a UILabel).
I need to save this array. I tried using writeToFile:Atomically: but that doesn't work with custom classes (I think). Is there any other simple way to save that? And how would i load it?
Thanks everybody in advance:) Any ideas, sugg...
Hi!!!
I am new to iphone development.previously i have retrive the data from database...
I want to know can i able to call web services from my iphone application or not...
if there is a possiblity to call the web services from my iphone Application plz give me the detail explanation ....
how can i call the web services from my iphone...
I'm having a problem getting my MacBook set up to build iPhone *apps* in xCode. The iPhone Simulator locks up and not show on desktop it only invoke after pressing the button f3.
I've tried everything I can think of, including
resetting the simulator
tried all of the different hardware options in the Simulator (5 or 6)
tried the two d...
please tell me how to compare 2 string variables
i am not talking about a string variable and a string(that is already give in this site
i tried it
if (s isEqualToString: str) {
// ...
}
here s ans ss are two NSMutableStrings already having values ....
but this doesnot work
i also tried isEqual but failed again
please help
remem...
I have a lot of NSURLConnections downloading. They may not happen on the main thread. When some of them finish, I call performSelectorOnMainThread for a separate singleton object.
I've used both forms of performSelectorOnMainThread, specifying the run loop mode (NSDefaultRunLoopMode) and not specifying it. NSDefaultRunLoopMode is sup...
Hey what i m doing i have to send requests to yahoo for picking up the stock rates. The companies name which i need to send are in an array n i have also coded to send only 100 companies request but what happens is the requests are sending all at a time and since it doesnt wait for the response i get response only for the first 100. how ...
Hello Everyone,
I am working on Rubik's Cube iphone application. But i am stuck in the middle of the development.
I am using SIO2 Gaming Engine for the development.
Can anyone please provide some sample source code for Rubik's Cube iphone application.
Thanks & Regards
Tariq
...
I'm a completely n00b when talking about audio. I'm using Matt Gallagher's audio streamer on my radio app. How may I use progressive download? Also, ExtAudioFile is a good idea too :)
Edit:
Used this:
length = CFReadStreamRead(stream, bytes, kAQDefaultBufSize);
if(!data)
data =[[NSMutableData alloc] initWithLength:0]; ...
I am using two buttons. I want to access these two buttons object from two different function.-
(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
// Custom initialization
button1= [UIButton buttonWithType:UIButton...
Where can I find source code of FireFox for iPhone?
...