I have a few sites that have SSL Certificates installed. When an SSL request is made with my employer's iPhone, this error message is displayed:
Accept Website Certificate
The certificate for this website is invalid. Tap Accept to connect to this website anyway.
I've pulled up the same pages in other browsers, including Safari...
I'm experimenting with using cagradientlayer to draw gradients in our app instead of having a subclass of uiview manage gradients. One snafu that i've come across is that when the view that has the gradient as a sublayer of its main layer gets resized to fit the data i am trying to show, the layer doesn't resize along with it. I end up...
I want to create a controller that depends on the class of a given instance of a model
-(BaseController *)getControllerForModel:(Model *)model
{
BaseController *controller = nil;
Class controllerClass = [BaseController class]; //the default value
//find the right controller
if ([model isMemberOfClass:[Mod...
I am working on the design and implementation of an iPhone application ( a newbie, but I am getting the hang of it) where a person can download specific contact information about teachers based on their majors.
The information is currently on different edu websites. And I have exported the information into SQLite databases. Is it possib...
I have a UIView displayed, oriented horizontally. It starts out vertically and the user has rotated the device 90 degrees. The main view within the root view is a UIScrollView with a content size equal to the height of the view and a large width.
Now, the view pushes a modal view on top.
Now the system receives a low memory warning. ...
I have an application with a UINavcontroller under a tab bar controller. To create the navigation model I want, I push a container UIView object onto the stack to manage additional views(Thanks Frank). When I created the container class, an associated nib file was created along with it. I at first used that nib file, but it turned out...
If I have a class/object like this
#import <Foundation/Foundation.h>
@interface anObject : NSObject {
NSString *aProp;
}
@property NSString aProp;
@end
and in the cellForRowAtIndexPath method i want to assign one of the string values from its properties to a uilabel of a tableviewcell, how do i do it?
I've tried this but it do...
Developing an iPad interface, I have a scenario where I have a UIViewController which manages a view that gets placed directly as a subview of the main UIWindow.
Before being placed in the UIWindow, that view gets resized to a non-standard size, let's say, 768x460, and positioned at the bottom of the screen.
When rotating the device, t...
I'm using yahoo local search in an iPhone app and trying to query everything in a certain location. According to the api docs you can pass "*" to query and it will return everything. I've tried passing it several different ways, including the way below but it does not work unless I actually pass it a real query. Does anyone know how or w...
I want to call a method responsible for drawing text on screen after each 5 seconds. Here is my code
-(void) handleTimer: (NSTimer *)timer
{
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(context, 2.0);
CGContextSetStrokeColorWithColor(context, currentColor.CGColor);
CGContextTranslateC...
I tried looking up other issues but couldn't find anything to match so here goes:
I'm trying to display text in the table view so I use this bit of code:
// StockData is an object I created and it pulls information from Yahoo APIs based on
// a stock ticker stored in NSString *heading
NSArray* tickerValues = [heading componentsS...
In an attempt to follow best practices, we're trying to use the proper JavaScript/jQuery events according to what device you are using. For example, we're building a mobile site that has an tag that will have an onclick or touch event. In the case of an iPhone, we'd like to use the "touchstart" event. We'd like to test if their device s...
I have two logos, which I want to come in after each other.
I'd like to use CCFadeIn and CCFadeOut.
I have Logo1, and then I want it to CCFadeIn, then I want it to stay for 2 seconds, then make it fade out using CCFadeOut, and then make Logo2 CCFadeIn for 1 second, stay for 2 seconds and then go away during 1 second with CCFadeOut.
Ho...
Is it possible to access iphone's camera from uiwebview? I know phonegap does it, but how to make it work without phonegap?
Thanks.
...
In regards to the 30 pin connector on the iPhone, does anyone know if any of the pins can be reconfigured to allow Video in?
...
I'm currently experiencing an issue with an Open GL ES renderbuffer where the backing and width are are both set to 15. Is there any way to set them to the width of 320 and 480?
My project is built up on Apple's EAGLView class and ES1Renderer, but I've moved it from the app delegate to a controller. I also moved the CADisplayLink outside...
Does anyone know if there is an open source project for an UIView element that acts in a similar way to the lock screen for the iPhone.
I am working on an app that has some sensitive data, and I want to add another layer of comfort for users, to be able to setup a 4 digit pin number on the app.
I've seen apps like LoseIt and Weightbot ...
Hi,
I have a big problem.
My program must save a Xml file with 3 float value (x, y, z of accelerometer) and a NSString value (name).
How can I do?
Thanks so much
...
I guess my description is not clear enough. So I'll try again:
Imagine there is a ViewController, called Picture, that display two lines, Title and Description.
In case the user tap one of the rows a new view controller is displayed, either Title or Description view controller.
Each of these view controllers (i.e. Title or Description)...
I'd like to pause my app when the user pauses music on his headphones.
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(playbackStateDidChange:)
name:MPMusicPlayerControllerPlaybackStateDidChangeNotification
object:[MPMusicPlayerController iPodMusicPlayer]];
works well. However, this is also triggere...