I have implementing pdf application for ipad.Now i want to set brightness in my application.Is it possible?Please help me for this problem.
Thanks in advance.
I am making one application in which i want to parse pdf document.I dont know how to implement.Please provide me some sample code and document.thanks in advance.
Hello. I am looking for those arrow icons (a left white arrow and a white right arrow) that are used on the lower toolbar of the Photo Library (or Camera Roll). I also have seen them on the Facebook app and some other custom apps. I am surprised that they are not built in "UIBarButtonSystemItem" icons. Can anybody point me to these icons?
Is it possible to load a short video file and - once loaded - select a specific frame and display that frame in a view? If there is no native support for this, how about an open source alternative?
Thanks in advance.
-Doug
what is the best way to check the strength of a password in iOS development?
I came across this post:
What is the best way to check the strength of a password?
but this is not iOS specific. My question is - Does Apple or third party libraries provide any libraries by default which I can use to check if the user entered a secure password?
If not, then as the above post says, is using regular expressions the best way?
Does Apple have any requirements which our app needs to implement to make sure user has a secure password?
I am planning on using the keychain to store the password.
Hello. I am a student programmer who has taken up Objective-C on my free time as my college doesn't teach it. We have only used Java and basic C so far. I am in the middle of making a program for the iPod and was wondering if there was any type of way to call a method in a class similar to the way a Focus Listener does in Java? I have a view that I would like to call a refresh method (to update the newly inputted titles of buttons from another view) when the view is put at the top and visible again. Is this too easy or is there a more methodical way of doing that? I have tried to just call the method from the other view class but it does not seem to work (says the other class is either undefined or may not accept the method call and crashes on execution).
Any insight would be appreciated. Thank you for your time.
In what format the content data is placed on server so that when user buy content from server he can use new content . also if this data is in compressed format then how to uncompress it in application ?
Hi guys!
First of all, sorry for my posibly bad english...
I got a surely big stupid question...
In my enterprise have an automatic door system, that is opened with a HTTP GET request to a file.
Example:
http://ipaddress/rc.cgi?o=1,50
Where the o=number indicates the amount of seconds that the automatic door will run.
The is no need for authentification or nothing (that is made by LAN Radius).
So, the question is...
How can I make a single button (for example in the springboard) that when you touch it, runs the GET request?
You thing that it should be possible with NSURLConection ?
Thanks for all
i have a c++ class with CGrect variable and i'm getting segfault when trying to access it.
class Parent
{
//with some virtual functions/dtors
};
class Child
{
public:
void SetRect(CGRect rect) { mRect = rect; }
CGRect GetRect() { return mRect; }
int GetIndex() { return mIndex; }
private:
CGRect mRect;
int mIndex;
};
i'm doing
CGRect rect = childPtr->GetRect();
from object c code and it segfaults.
I printed *childPtr just before the call and rect looks fine with intended data value.
int index = childPtr->GetIndex();
from same object c code(*.mm), works fine though.
Any idea why I'm getting segfaults?
Thank you
edit -
It's got something to do with virtual functions.
(gdb) p singlePuzzlePiece-GetRect()
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000001
0x00000001 in ?? ()
Cannot access memory at address 0x1
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (at 0x1) will be abandoned.
(gdb)
Somehow, the function is not properly compiled?
I have UITextView for text, after user press DONE, I convert text to UIImageView and show it. It works with one line of text very good,
and Screenshot 1
. But if user types two lines, or more: the result is still one line??? Screenshot 2
I want to display two or more lines in UIimageView
Can anybody help me! Thank you very much!
Here is my code:
-(UIImage *)convertTextToImage : (ObjectText *) objT;
{
UIGraphicsBeginImageContext(CGSizeMake(([objT.content sizeWithFont:objT.font].width+10), ([objT.content sizeWithFont:objT.font].height+10)));
[[objT getcolor] set];
[objT.content drawAtPoint:CGPointMake(5, 5) withFont:objT.font];
UIImage *result = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return result;
}
I have a root view controller with no nib file,
I tried adding this at cellForRowAtIndexPath as that passes in a UITableView as tableView.
So I put :
tableView = [[UITableView alloc] initWithFrame:self.view.frame style:UITableViewStyleGrouped];
It ran with no error but it didnt seem to change anything.
We are creating a video intensive app and want to be sure that adaptive streaming is required (given that we need to write an automated transcoding and segmentation system to support this). Does anyone know if the YouTube app is using adaptive streaming?
Has anyone had any experience of this? Is it easy? I know very little C, but all I want to do is package the web app as a native app. Is that allowed by Apple anyway?
Thanks!
Hi.
Among many animation scenarios, there are times when I want an object to move a straight line then change direction, move another straight line and so forth.
Assuming I would use either UIImageView or CABasicAnimation with image arrays.
Does it make difference to provide more images when the object is moving in a straight line?
For example,
point1 ---------point2 ------- point3 (all points are in a straight line)
Providing an image at point2 to UIImageView or CABasicAnimation, gives any better animation result, assuming I don't need to change the animation speed along the course?
If I were flashing each image myself, yes it would make the animation look smooth, but I'm giving the images to UIImageView/CABasicAnimation, and wonder what they do.
Thank you
My view hierarchy looks like this:
tab bar - navigation bar - table view - view 1 - view 2 (UIWebView)
How can I rotate view 2 so it can be displayed in both landscape & portrait mode?
I'm fairly new to Objective-C and am confused on what falls under the unbrella of a "private API" that could cause Apple to reject my app. Does this include adding methods to existing classes? For example, I found some code on stackoverflow to recolor the tab bar icons for UITabBars with this extension to the UITabBarItem class. Is this considered a "private API"? If not, what does?
@interface UITabBar (ColorExtensions)
- (void)recolorItemsWithImage:(UIImage *)image shadowColor:(UIColor *)shadowColor shadowOffset:(CGSize)shadowOffset shadowBlur:(CGFloat)shadowBlur;
@end
I am creating an SDK for a client that includes predefined view controllers. What is the recommended way to package everything (static lib, .xib(s), and .png(s)) for easy use?
SDKs that I've used (e.g. Pinch Media) do a good job of just providing a .h and .a file that expose only user accessible functionality and hiding everything else. As I read Apple's documentation, a framework would be ideal but is not permitted on iPhoneOS.
Some key requirements:
Don't expose source or object
internals.
Be easy to use & set up.
Work on both the device and simulator.
Thanks!
Hi, in my application the first view is an UIView with a couple of uilabel and an uibutton to do the login.
I would to show an uinavigationcontroller with a table after the login, so with the action of the button.
I know how to set up a working Navigation Controller starting with the Xcode Template but i dont know how to load this as a "Second View"
Any help?
Hi,
On some app , I see when one link touched , use safari for open link and quit from current app.
I want use from this feature for run messages app from other app , Can I do this? if yes, how can?
thanks,...
I have sql query statement which used to display the contents in the table.The sql statement consist of a where clause which is to be appended with numeric value as 1 ,2 3 etc depends upon the previously selected content.I am having the numeric value as int and i want it to append to sql statement which is const char.how can i append both the values.Please help me out.
My query is == select * from Book where id=1;
i have the id value is integer
Thanks.
Hi,
I want to provide a picker to the user to select a country.
I've had a look in the NSLocale docs and I can get a list of all of the country codes supported on the device, which feels like a start:
Code:
NSArray *codes = [[NSArray alloc] initWithArray:[NSLocale ISOCountryCodes]];
But I can't work out if there is a programatic way to convert this array into country names...
Ideally this list would be localized as well, i.e. show the country name in the user's preferred language.
Can anyone point me in the right direction?