I'm trying to provide an IBAction method for common functionality that is required at various parts of the app.
i.e. Login is implemented modally, and if it succeeds results in a notification that allows all loaded view controllers to react to this event (transition from anonymous to authenticated)
@interface MyAppDelegate : NSObject <...
I'm looking to develop an iOS app that includes drag and droppable interface elements, but with alignment guides like those in Keynote or OmniGraffle or Interface Builder (the yellow lines in Keynote) such that when you drag something near enough to vertical or horizontal alignment with another object in the canvas, it displays a guide l...
I have 2 tabs in my TabBar. They both hold instances of the same UITableViewController.
The hierarchy goes
UITabbarController > UINavigationController > UITableViewController
From within the tableViewController I'd like to determine which tab is currently selected. I know I can use the selectedIndex property of the UITabBarController...
Hello,
I'm playing around with the GLPaint Example from Apple.
But I don't know how to create an effect which fades the already drawn stuff out.
I created an example in Flash which shows the effect I'm looking for:
http://staging.rwichmann.com/openglexample/
In Flash I'm drawing a texture on a BitmapData and in every frame I'm adding ...
I have been developing a Mac Desktop app with an iOS device counterpart.
Basically I want to upload event information (music gigs etc.) from the Desktop to an online database and be able to read (only) the information whilst mobile.
I've got both apps working, using Core Data (with a sqlite database - I was going to use XML but the iOS ...
In a web application I'm working on, I decided to consolidate a few buttons by turning them into select elements of one dropdown list, with onClick events loading for each option pressed. However, this does not work in iOS (Safari on the iPhone). Is there a different event I can use to grab menu selection from Safari for iPhone?
...
In my iPhone app, I have about 100 full screen images for image sequence core animation. The reason that I use such a large image sequence animation is that video playback is not flexible and powerful enough in SDK 3.0.
My images are not fully covered. For OpenGL, we can pack the valid content of several images into one large and power-...
Hi, I want to send a CVImageBufferRef I got from
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection{
CVImageBufferRef imageBuffer = CMSampleBufferGetImageBuffer(sampleBuffer); }
over the network using NSOutputStream's write:maxL...
I'm diving into iOS development and I just found out about the Static Analyzer and it's been pointing out all sorts of mistakes I was making in the code. The Static Analyzer doesn't really seem to eat up any extra time when building and so I'm wondering why it isn't enabled by default.
Are there any reasons you wouldn't want to use the...
In an application showing chunks of text, I'm having the font size increase when the device is turned to a landscape orientation. I don't like how it does the whole animation and then suddenly jumps to the new size, so I'd like to animate the size change over the course of the rotation.
I read somewhere that throwing this change in a U...
I'm trying to make a paging UIScrollView display multiple pages at the same time, in effect, making the page size smaller than the scrollview's bounds. I've been googling for hours, but nobody seems to have a good solution.
I'm able to get the right effect visually by sizing the scrollview to the size I want one page to be, turning off...
My iPad app is freezing at this line of code:
self.view.frame = [[UIScreen mainScreen] applicationFrame];
There are no errors, warnings and the app doesn't crash, it just freezes. This is obviously standard code and I use the same line in a very similar view controller with no problems.
Any ideas?
...
I have a japanese PDF document that I'm trying to render correctly on the iPad.
I'm using the following code:
CFURLRef pdfURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, (CFStringRef)pdfFilename, kCFURLPOSIXPathStyle, false);
CGPDFDocumentRef pdfRef = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL);
CFRelease(pdfURL);
CGPDFPageR...
I am new to iOS developement, and i am trying to understand the whole cycle of iOS application developement, and i feel there's a missing part i just don't get it..
if the MainWindow.xib that is generated automatically by Xcode has a view that loads another xib/nib view inside it, then why we use it ?
...
Is there a way to authenticate a user with facebook in the background using id/pass he entered in configuration screen? I mean authentication without the usage of UIWebView, but using some kind of Http client to retrieve auth token (OAuth 2.0 preferably)
...
Hi,
For my iPad app, I'm using a UIViewController subclass called SidebarViewController to display some stuff in a sidebar. In the sidebar I have a calendar control. I'm using the open source Kal component from http://github.com/klazuka/Kal. In the -viewDidLoad method of SidebarViewController, I'm creating a new instance of KalView (the...
I am using CGPDF* set of classes to read a pdf document, is there a way to extract the object that was touched ('clicked') by user? In other way is there a way to get a PDF / (Quartz?) object at certain coordinates?
...
I'm creating an object that will have two integers (or NSNumbers) and an NSDate as ivars. This object will be in an NSMutableArray. To my knowledge, we cannot put primative integers in an NSMutableArray, but will my object work with ints? The reason I don't want to use NSNumbers is because these will have to be mutable, and I don't reall...
Hi, I have a problem with my iPhone app, I have a crash log from a tester that i ran through symbolicatecrash but I'm still not sure what could be causing it. The crash only happens on one tester's device and I am unable to reproduce it on my device.
Hardware Model: iPhone2,1
OS Version: iPhone OS 4.0.1 (8A306)
Exception Ty...
Is it possible to capture command-key sequences in 3rd party iPad/iPhone apps?
Long version:
On my excellent journey of discovery vis-a-vis my new iPad with it's gleaming keyboard dock, I discovered, much to my joy, that when editing text in standard issue text views; commands ranging from ⌘C/⌘P for copy-paste and ^A, ^B, ^E and friend...