strange issue noticed while upgrading the app to IOS 8.0.2 with xcode 6.
App which moves between viewcontrollers, started getting lag when using the navigationcontroller.pushviewcontroller
It was working fine till IOS 7.1
Here is a temporary fix for now.. had to make the animated:NO instead of animated:YES and the screens are showing now without any delay.
working code till 7.1:
[self.navigationController pushViewController:vhome animated:YES];
had to be changed to
[self.navigationController pushViewController:vhome animated:NO]; to remove the delay while presenting the new screen in IOS 8.0.2
Will update this code once i figure out the issue.
-Bobby
Monday, September 29, 2014
Sunday, April 6, 2014
Enterprise App cannot install applications because the certificate for server is invalid
You might see a error that says "cannot install applications because the certificate for server is invalid" while installing ipa over the air. This seems to be a issue with ios7.1 works fine with all other versions.
Trick is to put the https in the URL instead of the http in the htm file.
change the following URL from
<a href="itms-services://?action=download-manifest&url=https://server.com/IPA/abc.plist">Install My App</a>
Bob
Trick is to put the https in the URL instead of the http in the htm file.
change the following URL from
<a href="itms-services://?action=download-manifest&url=http://server.com/IPA/abc.plist">Install My App</a>to
<a href="itms-services://?action=download-manifest&url=https://server.com/IPA/abc.plist">Install My App</a>
Bob
Saturday, March 15, 2014
nsdictionry writing to File blank file getting created
Blank file getting created after saving Dictionary to a file.
The Cocoa API is very specific about what kind of values can legally be in a dictionary when it is written out to file. One particular limitation that has been known to cause problems and which is not thoroughly discussed in the official API documentation is that all of the keys in your dictionary must be of type NSString (and your values must be one of NSData, NSDate, NSNumber, NSString, NSArray, or NSDictionary), even though the dictionary itself supports keys and values of any object type.
from url: http://stackoverflow.com/questions/5361630/iphone-writing-nsmutabledictionary-to-file
The Cocoa API is very specific about what kind of values can legally be in a dictionary when it is written out to file. One particular limitation that has been known to cause problems and which is not thoroughly discussed in the official API documentation is that all of the keys in your dictionary must be of type NSString (and your values must be one of NSData, NSDate, NSNumber, NSString, NSArray, or NSDictionary), even though the dictionary itself supports keys and values of any object type.
from url: http://stackoverflow.com/questions/5361630/iphone-writing-nsmutabledictionary-to-file
Monday, December 23, 2013
Xcode running instruments from commandLine in the actual Device
1) run terminal as Admin (sudo -s).
2) point to the directory where scripts are residing (/users/sj/desktop/scripts/.... etc).
3) Use the full path for the app
4) Run the following command
instruments -w 17cbebfa26acxxxxxxxxxxxxxxxxx -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /var/mobile/Applications/A51C31B7-6566-46FB-XXXX-XXXXXXXXXXXX/abc.app -e UIASCRIPT Script1.js
the one next to -w is the UDID of the device
after -t it is the full Path for the instruments (note this might change for different versions of Xcode. the above code works for xcode 5.0.2)
after tracetemplate -- the one starting with /var is the full path of the APP(If you get error like unable to find CFBundleidentifier then specify the full path for the app otheriwse just the app name should suffice without full path)
after UIASCRIPT it is the name of the script.
optional: To specify where to store the trace output(i.e log) please specify the following
-e UIARESULTSPATH fullPath
The above configuration worked for me. Without Admin rights and without running the script from the folder or without specifying the full app path i got the following errors.
1. Argument 'UIASCRIPT' does not point to a valid script. Using script defined in template.
2. Automation Instrument ran into an exception while trying to run the script. UIANoScriptToRun
3. Connection peer refused channel request for "com.apple.instruments.server.services.wireless"; channel canceled <DTXChannel: 0x7fba2b94a7c0>
4.unable to find bundleidentifier for abc.app
1) run terminal as Admin (sudo -s).
2) point to the directory where scripts are residing (/users/sj/desktop/scripts/.... etc).
3) Use the full path for the app
4) Run the following command
instruments -w 17cbebfa26acxxxxxxxxxxxxxxxxx -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate /var/mobile/Applications/A51C31B7-6566-46FB-XXXX-XXXXXXXXXXXX/abc.app -e UIASCRIPT Script1.js
the one next to -w is the UDID of the device
after -t it is the full Path for the instruments (note this might change for different versions of Xcode. the above code works for xcode 5.0.2)
after tracetemplate -- the one starting with /var is the full path of the APP(If you get error like unable to find CFBundleidentifier then specify the full path for the app otheriwse just the app name should suffice without full path)
after UIASCRIPT it is the name of the script.
optional: To specify where to store the trace output(i.e log) please specify the following
-e UIARESULTSPATH fullPath
The above configuration worked for me. Without Admin rights and without running the script from the folder or without specifying the full app path i got the following errors.
1. Argument 'UIASCRIPT' does not point to a valid script. Using script defined in template.
2. Automation Instrument ran into an exception while trying to run the script. UIANoScriptToRun
3. Connection peer refused channel request for "com.apple.instruments.server.services.wireless"; channel canceled <DTXChannel: 0x7fba2b94a7c0>
4.unable to find bundleidentifier for abc.app
Labels:
<DTXChannel: 0x7fba2b94a7c0>,
CFBundleidentifier,
com.apple.instruments.server.services.wireless,
command Line,
commandline,
instruments,
ipad,
iphone,
mac,
sudo,
terminal,
tracetemplate uiascript,
UDID,
xcode
Wednesday, October 30, 2013
adding character to a string Objective-c
char c1=(char)13; char c2=(char)10; char c3='1'; NSString *stringfromchars = [NSString stringWithFormat:@"%@%c%c", @"some string",c1,c2];
Bobby :)
Subscribe to:
Posts (Atom)