I have a text view, which has links to web pages, like Wikipedia. Usually when I click on the links it closes my app and opens up Safari.
How do I control the hyperlink, so it loads the web page in the UIWebView instead of Safari?
Putting a button over the link isn't what I want, because it is a scrollable text view.
Is there a Void I...
Newbie Q.
I am building an app that will store data in sqLite then will collect it at week's end when the staff comes into the office.
What options do I have to get the data off.
Perhaps a receiving REST Web service?
Is there an 'export to iTunes file system' or something like that other option?
...
I have a hard time to find any examples for NSURLConnection delegate method implemenetations. The SeismicXML example from apple is incomplete. For instance, they don't incorporate
-connection:willSendRequest:redirectResponse:
Maybe there's a good text out there. I went already through all the Apple material regarding this.
...
I am new to plists. They seem very powerful for static data but I'm not sure how to accomplish the following.
I have a table of data (a spreadsheet currently) where the first column is a unique id (perfect for the key) and I want that key to map to the a structure w/ the rest of the column's data.
I'm looking at my plist in XCode and I...
I'm running into an issue where I have a UIButton in which I want to track press/release events. So I am tacking on to the Touch Down/Touch Up events. Unfortunately, in certain situations this won't track Touch Up events -- for instance, if an Alert pops up.
- (IBAction)buttonDown:(id)sender;
- (IBAction)buttonUp:(id)sender;
How do I ...
I am having some serious issues and annoyances with MPMoviePlayerController. In my app you can watch trailers for some movies in .mov format.
I have tested with a friend and had users report that it does not work on their device, which are all 3G. I have tested on my own, a 3GS and playback works fine. I have tried on a 1st gen iPhone a...
I have used TableView and also used Disclosure Button by clicking on Disclosure Button i have got one Particular Image comes.i want that when i pressed Disclosure Button i have to get that particular image with performing Orientation so how can i do it.please help me. I am new in this kind of application.
...
Hi all, I've created a .xib file and added a UIView to it in IB that I've called detailView. I need to load a .xib into the detailView area, and here is the code I'm using in my view controller to do so:
NSArray *nibObjects = [[NSBundle mainBundle] loadNibNamed:@"DetailView"
owner:s...
In an attempt to fix a memory leak, I am trying to implement this code in my .m file:
AVAudioPlayer *audioPlayer;
- (AVAudioPlayer *)audioPlayerWithContentsOfFile:(NSString *) path {
NSData *audioData = [NSData dataWithContentsOfFile:path];
AVAudioPlayer *player = [AVAudioPlayer alloc];
if([player initWithData:audioData err...
In Xcode, say you write an app for the iphone and it has a runtime
error in it. What I've been seeing is that it just closes out the
program in the simulator but doesn't really hilight or give me any
feedback as to what line caused the crash... am I missing something??
Note: I don't consider the console to be very effective since
it jus...
I've prototyped an iPhone app that uses (internally) sqLite as its data base. The intent was to ultimately have it communicate with a server via PHP, which would use mySQL as the backend database.
I just discovered Google App Engine, however, but know very little about it. I think it'd be nice to use the Python interface to write to...
I have the code [window addSubview:[self.mvController view]]; where mvController is a view controller and whenever I run the program (device and simulator) it crashes.
...
I created a test account to check in app purchases. I could purchase and the purchase was successful. After that I found a bug in navigation. I fixed a bug, created another account and deleted the account I logged in in previous session. Now I cannot test the in app purchases anymore, since the app store log me in automatically with a gh...
I'm using an EAGL context and view for my application's normal screen rendering. This involves (as expected) creating and binding a renderbuffer and framebuffer to the view's CAEAGLLayer. This works as expected.
However, at some times, I want to use OpenGL to render some geometry fully offscreen (for the purpose of getting the resulting...
Hello, I would like to have an UIImageView that flickers. I thougt I can make it with CoreAnimation and the alpha-value. I tried this:
for (int a = 1; a <= 100; a++) {
schwarz.alpha = 0.7;
[UIView beginAnimations:nil context:nil];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
[UIView setAnimationDuration:1];
...
My line is only 1 pixel thick. How can I thicken it? I use MontoTouch.net but Objective-C is fine in the answer.
ctx.SetRGBStrokeColor (1,1,1, 1f);
ctx.MoveTo(130,110);
ctx.AddLineToPoint(200,200);
ctx.StrokePath();
...
I am having a baffling issue while trying to fill an NSMutableArray with UIImages.
CGBitmapInfo bitmapInfo = kCGBitmapByteOrderMask;
CGColorRenderingIntent renderingIntent = kCGRenderingIntentDefault;
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
while(...) // <--- Iterates through data sets
{
CGDataProvide...
I am still struggling with drawing a line with CGContext. I have actually go to line to draw, but now I need the background of the Rect to be transparent so the existing background shows thru. Here's my test code:
(void)drawRect:(CGRect)rect
{
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColo...
What's the easiest/fastest/most efficient way to perform a gradual (0.5 sec) fade from Default.png to the initial app view?
My initial try, which doesn't work so well .. it's Saturday night, let's see if we can do better :)
UIImageView* whiteoutView = [[UIImageView alloc] initWithFrame:self.view.frame]; // dealloc this later ??
whiteou...
Is there any program that will generate a compliant plist XML structure from a spreadsheet where the first column is the key (for the plist dictionary) and the value is a dictionary made up of the subsequent columns.
...